- The project is based on NestJs, which the user creates and verifies
- After creating a user, you can login and get the list of users and update or delete them if needed.
- After login, the token is returned to the user.
- The jwt service is used for tokenization.
- postgres database is used in this project
Add a .env file in the api folder
- add your own dataBase config in the .env file
- add your own JWT_SECRET in the .env file
Database:
if you have mac you can use pgAdmin4 for your db
Example of file:
POSTGRES_HOST=<your host>
POSTGRES_USER=<your user>
...
JWT_SECRET=jklasjdoij897231na
npm install
npm run build
npm run start:dev
npm run test:e2e
npm run test
npm run test:watch
login in
https://hub.docker.com
run docker build -t {Image Name} .
run the image with this command : docker run -p port:port -d --name {container name} {image name}
If you have any questions, you can contact me via email: fatemehbaratit@gmail.com