node-expressx
v2.1.3
Published
ExpressX is a default server setup with Node Express and MongoDB support. Follow instruction and documentation to Save your 10x time.
Maintainers
Readme
Node Express Server Setup
Installation Process
Tuitorial: https://youtu.be/NLvC-JCFJAA?si=CcXtaGkJ6QQ9jOqN Or you can follow these steps:
Installation Process
- Run the following command
npx node-expressxCreate a new database in MongoDB Compass or MongoDB Cloud Storage
Then update name
example.envto.env. Goto this.envfileDATABASE_URL, Default name givennextjschange it whatever you want.You can add local and also cloud for production level.
Then create a new table name
users, contain following fields.{ "username": "", "email": "", "password": "", "role": "" }You can open
postmanand paste this api endpoint into the url sectionhttp://localhost:5000/api/v1/usersAfter that select
bodyand alsojsonas format and paste that object, usedbcryptto encrypt password{ "username": "Minhazul Abedin Munna", "email": "[email protected]", "password": "1234", "role": "admin" }Now select
POSTmethod and hitsendbutton, It will successfully create a user.Goto this project directory & open terminal
npm run start:dev- Now project will run in following port
http://localhost:5000API Endpoints
http://localhost:5000/api/v1/http://localhost:5000/api/v1/usersInstructions
- Create any module by this command
npm run create-module moduleNameDeleting a Module by following this command
npm run delete-module moduleName- If you want to delete any module , just delete the module form
src/app/modules/moduleNameand also delete the route fromsrc/app/routes/index.tsfile.
Deploy
- Just run the following command, This will generate the
distdirectory. Which you can deploy to the server.
npm run build- After getting the
distdirectory, you can run the following command
npm run start:prodYou can check whether your project is working perfectly for the production level or not.
Features
- File upload configured with Multer, cloudinary, imgbb
- Payment gateway configured with sslcommerze, paypal & stripe
- Organized file with modular approach (controller, service, route, interface)
- Socket.io configured for real time communication
- MongoDB configured
- Mail Server configured with Node Mailer
- Query Builder configured
Contributor ✨
Thank you
2024-2025© Developed by smmunna
