Public | Automated Build

Last pushed: a year ago
Short Description
A quick application starter boilerplate based on castor-core
Full Description

castor-boilerplate

A quick application starter boilerplate based on castor-core (obsolete, not maintained anymore).

Replace "castor-boilerplate" by your name in all files to start a new project ...



Install and run

Without docker:

git clone https://github.com/Inist-CNRS/castor-boilerplate.git
cd castor-boilerplate
npm install
npm start

Then navigate to http://127.0.0.1:3000

With docker:

git clone https://github.com/Inist-CNRS/castor-boilerplate.git
cd castor-boilerplate
docker-compose up

It will download and run the inistcnrs/castor-boilerplate docker image sharing ./data/ and ./config.local.js with the docker container.

Install and run for developements

With npm:

To start castor-boilerplate from a local git clone, you can follow these steps (needs nodejs and mongodb installed localy):

git clone https://github.com/Inist-CNRS/castor-boilerplate.git
cd castor-boilerplate
npm install
npm run debug
# the app is listening at http://127.0.0.1:3000/
# then open another terminal and your can freely edit the code

With docker:

The same but with docker (advantage: do not need to have mongodb and nodejs isntalled localy):

git clone https://github.com/Inist-CNRS/castor-boilerplate.git
cd castor-boilerplate
npm install
npm run debug-docker
# or just: docker-compose -f docker-compose.dev.yml up
# the app is listening at http://127.0.0.1:3000/
# then open another terminal and your can freely edit the code

or without npm/node

git clone https://github.com/Inist-CNRS/castor-boilerplate.git
cd castor-boilerplate
make install
make run
# the app is listening at http://127.0.0.1:3000/
# then open another terminal and your can freely edit the code

Configuration

Create a config.local.js containing:

module.exports = {
  "logLevel" : "dev"
}
Docker Pull Command
Owner
inistcnrs
Source Repository

Comments (0)