Skip to content

greysoft-code-camp/CodeCamp-NodeJs-Api

Repository files navigation

CodeCamp-NodeJs-Api

The api implementation of code camp to-do using nodeJs

To run the server with docker, Build the docker image using this command

docker build -t "codecamp-api" .

To start the container, run:

Do not forget to replace the placeholders with your enviroment variables

docker run -d -t -i -e PORT=YOUR_PORT
-e MONGODB_URI=YOUR_URI
-e JWT_SECRET=YOUR_SECRET -e JWT_TIMEOUT=24h
-p 5000:5000/tcp codecamp-node

To access the API documentation, visit:

localhost:5000/api-docs

To install the server locally,

rename the .env.example to .env and add your enviromental variables

then run:

npm instaall && npm run dev

To access the API documentation on postman, visit:

https://documenter.getpostman.com/view/18528397/UVsEX9yh

To access the API documentation on heroku, visit:

https:/greycodecamp.herokuapp.com/api-docs

About

The api implementation of code camp to-do using nodeJs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •