Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jitendra-chauhan/fmcg-commercial-app
https://github.com/jitendra-chauhan/fmcg-commercial-app
order-management product-management-system
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jitendra-chauhan/fmcg-commercial-app
- Owner: jitendra-chauhan
- Created: 2022-09-21T12:58:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T06:16:12.000Z (over 1 year ago)
- Last Synced: 2024-11-16T22:12:13.051Z (3 months ago)
- Topics: order-management, product-management-system
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FMCG-application
# start typeScript server
npm start# start build javaScript server
npm run build
npm run startBuild# swagger URL
http://localhost:3022/api-documents/# .env
NODE_ENV=development
PORT=3022
NODE_ENV=development
MONGODB_URL=mongodb://localhost:27017/fmcg
MASTER_DB=fmcg
JWT_ACCESS_EXPIRATION_MINUTES = 300
JWT_REFRESH_EXPIRATION_DAYS = 24
JWT_SECRET = dummy
JWT_WITH_RE_USER_EXPIRATION_HOURS = 10
JWT_WITHOUT_RE_USER_EXPIRATION_HOURS = 10
SWAGGER_HOST = localhost:3022# BackEnd Coding Challenge
## Idea of the App
The task is to implement a small server application that will have basic functionalities such as authentication, role management, etc.
## Features
- App have Bearer authentication
- Restricted some routes to a specific role such as list of customers can be called with admin role
- App have CRUD, filter(category, price band, name etc.), pagination queries
- Implemented swagger doc for api endpoints## Things to keep in mind
Your code will be evaluated on:
- whether the technologies required are used
- code structure
- programming best practices
- legibility## Technologies to use
see my implementation using the following technologies:
- Express with Typescript
- Mongodb database
- JWT for authentication
- Joi-validation