RESTful API design workshop for beginners using Node Js and MongoDB
- git v2 or greater
- Node Js v8 or greater
- yarn v1 or greater (or npm v6 or greater)
- MongoDB Community Edition v4 or greater
All of these must be available in your PATH. To verify things are set up properly, you can run this:
git --version
node --version
yarn --version # or npm --version
mongod --version
If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for windows or mac/linux.
- Clone the repository with
git clone [email protected]:learnwithparam/rest-aurora.git
- Go inside the lesson folder. It is arranged as a number sequence starts from
00
- Run
docker-compose up
. It will start our application onhttp://localhost:<PORT>
- Once you finish the solution on each lesson, run
docker-compose down
. - Go to next lesson and repeat from step 2.
- Each chapter contains tasks. We will code the solution live in the workshop
- If you want to check the solution for any of the lessons. You can checkout to
solutions
branch and run the respoective project inside folder
Recommeded only for advanced users who has worked with docker and docker compose, else please install everything we mentioned in the system requirement. That will make your life easier while coding along the workshop
- Docker Engine - v17 or above
- Docker compose - v1.2 and above
docker --version
docker-compose --version
Note: You can install docker desktop for mac or windows to install docker engine, compose and other goodies from docker
Go to the lesson folder
- Run
npm install
to install the dependencies - Run
npm start
to run the server
If you are using docker, then
- Run
docker-compose up
to start the server - Run
docker-compose down
to shutdown and cleanup the server once you finish the tasks for this lesson. Note: This step is very important else docker-compose will lock the previous database running and cause problem running the next lesson.
This material is available for private, non-commercial use under the GPL version 3. If you would like to use this material to conduct your own workshop, please contact me at [email protected]