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.
Downloads
58
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-expressx
Create a new database in MongoDB Compass or MongoDB Cloud Storage
Then update name
example.env
to.env
. Goto this.env
fileDATABASE_URL
, Default name givennextjs
change 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
postman
and paste this api endpoint into the url sectionhttp://localhost:5000/api/v1/users
After that select
body
and alsojson
as format and paste that object, usedbcrypt
to encrypt password{ "username": "Minhazul Abedin Munna", "email": "[email protected]", "password": "1234", "role": "admin" }
Now select
POST
method and hitsend
button, 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:5000
API Endpoints
http://localhost:5000/api/v1/
http://localhost:5000/api/v1/users
Instructions
- Create any module by this command
npm run create-module moduleName
Deleting 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/moduleName
and also delete the route fromsrc/app/routes/index.ts
file.
Deploy
- Just run the following command, This will generate the
dist
directory. Which you can deploy to the server.
npm run build
- After getting the
dist
directory, you can run the following command
npm run start:prod
You 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