This app is built using;
- Setup and configured using create-react-app.
- Uses react-bootstrap library for UI components.
Exposes four API endpoints for managing ToDos:
GET
/todos
POST
/todos
PUT
/todos/:id
DELETE
/todos/:id
The application uses database name todos-db
and collection name todolist
, and is reachable on localhost
, port 27017
. See setup instructions below.
Install for your operating system.
- Install Docker for your operating system.
- Run the
mongo:4.4
docker image.
docker run -d --name todolist-db -p 27017:27017 mongo:4.4
a. To stop the mongodb docker container, run:
docker stop todolist-db
b. To start mongodb docker container again, run:
docker start todolist-db
Run npm run install-deps
Run npm start
If successful, client should be running on http://localhost:3000/
and server should be running on http://localhost:5000/
.
Have fun creating ToDos. :D