Liopun / law-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Registering a new admin who can add a client.
  2. Logging in a new admin.
  3. Refreshing a logged-in jwt.
  4. Adding a new client.
  5. Retrieving all clients.
  6. Retrieving one client.
  7. Updating a client.
  8. Adding a note to a client.
  9. Deleting a client.
  10. 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

About


Languages

Language:HTML 76.2%Language:JavaScript 19.8%Language:CSS 3.8%Language:Dockerfile 0.2%