Saturn Service is a API used for user creation and authentication. Where you can create, update and fetch user data. It is part of a project aimed at creating portfolios for financial control wallet.
- Design Patterns
- Factory Method
- Adapter
- Composite
- Builder
- Express
- Bcrypt
- JWT
- MongoDB
- Nodemon
- Jest
- Eslint
cp example.env .env
npm install
npm run start
npm run start:dev
npm run start:debug
docker compose up
All routes run on port 3001 but you can change it in .env file
- Sign Up:
{{host}}/api/sign-up
- Sign In:
{{host}}/api/sign-in
- Get User:
{{host}}/api/user
- Get All Users:
{{host}}/api/users
- Update User:
{{host}}/api/user
- Confirm User:
{{host}}/api/user/confirm
- Redefine password:
{{host}}/api/user/redefine-password
# Running all test
npm run test
# Unit test
npm run test:unit
# Integration test
npm run test:e2e
# Running all test with coverage
npm run test:ci
# Running all test and show errors
npm run test:verbose