This is my take on an express auth and resource REST API server integrated with MongoDB. For ease of development and future deployment, all services are dockerized.
This uses the following technology,
- jsonwebtoken
- bcrypt
- express
- mongodb
- mongoose
- docker
- docker-compose
Install the pre-requisites
- Install Nodev12 and above. Download it here
- Install Docker. Download it here
That's actually all you need.
For first time installs I recommend to build first,
docker-compose build
Once you build it,
docker-compose up
Dependent on how you install your docker it should be available to be called upon either in localhost or the docker network under the port 3000.