amit-backend
v1.0.3
Published
Amit's Backend - Express + Mongoose production-ready template
Maintainers
Readme
Amit's — Backend Template
An Express + Mongoose backend template for quick project bootstrapping.
Features
- Express 5
- Mongoose + MongoDB
- JWT auth scaffolding
- Environment config via
.env
Install
After this package is published, install with:
# npm
npm install amit-backend
# pnpm
pnpm add amit-backendOr use the repository directly:
git clone https://github.com/amitverma147/Amit-backend-template.git
cd Amit-backend-template
pnpm install
pnpm devUsage
- Copy
.env.example(if present) to.envand setMONGO_URI,JWT_SECRET, etc. - Start dev server:
pnpm dev(usesnodemon) - Start prod:
pnpm start
Publishing (maintainers)
- Make sure you're logged in to npm:
npm login - Bump the version (conventional):
pnpm version patch # or minor/major- Run tests (prepublishOnly will run tests automatically):
pnpm test- Publish:
pnpm publish --access publicNote:
prepublishOnlyrunspnpm test— the template ships with a placeholder test script which currently passes.
Contributing
Feel free to open issues or PRs in the repository.
