Playground to learn Node.js Basics & REST architecture paradigm
- Exemplary In-Memory note management as RESTful API (Branch:
master
) - Persistent note management as RESTful API (Branch:
mongodb
) - Web UI & RESTful API note management in VanillaJS (Branch:
frontend-starter-vanillajs
)
- Create a MongoDB Database with the name
notes-example-app
- Create a collection in the db with the name
notebooks
- Create a .env file with the connection string your MongoDB
- Variable:
MONGODB_CONNECTIONSTRING
- Variable:
- Install dependencies
npm install
- Run server
npm run start
or- Use nodemon:
npx nodemon start
- Access your API via:
http://localhost:3000
Only on branch: frontend-starter-vanillajs
- Make sure your backend is running
- Run the frontend webserver via gulp:
npx gulp webserver
- Access your frontend via Browser:
http://localhost:8000