You will need the following things properly installed on your computer.
- Git
- Node.js (with NPM)
- StrongLoop CLI
- MongoDB
git clone git@github.com:bootenv/bootenv-rest-api.gitthis repository- change into the new directory
bootenv-rest-api nvm usenpm install -g strongloopnpm install
The data layer for API is based on MongoDB.
Now, we are not using
bootenvto setup our conf variables but we really need migrate as soon as possible!
nvm usenpm start
In development mode (NODE_ENV=development) we monitor for any changes and automatically restart the server
nvm usenpm run serve
Visit your API status at http://localhost:3000. To explore your API visit http://localhost:3000/explorer.
As we want to run this REST-API in a Docker container, please take a look on a given Dockerfile.
The Dockerfile is simple and straightforward.
The quickest way to get started is using Docker Compose.
docker-compose up
NOTE: Please allow a couple of minutes for the REST-API to start.
Alternately, you can manually build and run the Docker REST-API container.
docker build --tag="bootenv/bootenv-rest-api:latest" .
docker run -d --name api -p 3000:3000 --env='NODE_ENV=development' --env='MONGO_URL=mongodb://localhost:27017' bootenv/bootenv-rest-api:latest
Make use of the many generators for code, try slc --help for more details
- 1.0.0-alpha.1 (current)
