law-firm-backend
Using Node.js, MongoDB, jest And Docker
Features:
- Add a new client to the database.
- Retrieve an existing client from the database.
- Update an existing client in the database.
- Remove a client from the database.
Jest testing user stories:
- Registering a new admin who can add a client.
- Logging in a new admin.
- Refreshing a logged-in jwt.
- Adding a new client.
- Retrieving all clients.
- Retrieving one client.
- Updating a client.
- Adding a note to a client.
- Deleting a client.
- Revoking a logged-in jwt.
Running it locally
git clone https://github.com/Liopun/law-backend.git
cd law-backend/
create your config folder with default.json and production.json
docker build -t law-backend .
docker run -it -p 3001:3000 law-backend
Running it from DockerHub
docker pull liopun/icuc-law-backend
docker run -it -p 3001:3000 liopun/law-backend