It's a project base that is written in Node.js(Express). The aim of this project is to establish the standard infrastructure in new projects and to provide development for the main purpose.
- Postman Collection and Environments will be prepared.
- MongoDB Database Models will be added.
- Documentation will be prepared
- HTTPS option will be added.
- TFA will be added.
- Security Checks & Updates.
- Keycloak Integration
- All CRUD operations for Users
- All CRUD operations for Roles
- All CRUD operations for Categories
- Basic Audit Log mechanism
- MongoDB Connection and table relationships
- SSE Integration
- Winston Logger
- Multi Language Support
You can run this project in your local with the following steps:
-
Clone or download the project-base to your local machine.
-
Run the following commands:
cd project-base/ npm install
-
Set up the environment variables.
This project uses the
dotenv
module to get environment variables. So you can create a.env
file to set the environment variables.Here is an example of the .env file.
CONNECTION_STRING=mongodb://localhost:27017/project_base JWT_SECRET=8cgVcskCpM8FxGf8N8Zx3r8waXU79xK2FkaQZWVZNfBPS3Qy6RG3ZHEnzcDFKHk5Jp32UM87Ks6ES9FBcwBBV7ehhYXggsmNxxgF2eBHUaUJhg3gPZtDR2EgUnwKUcyI TZ=Europe/Istanbul
If you want to see the other environments that using in the project, look at the config/index.js file.
-
And you can run the project with the following command:
npm start
-
Finally, the project-base listens to '3000' port.
Ender CAN
No License. Be comfortable while using it.