create-codebyamanv-server
v1.0.12
Published
Instead of installing with `npm i`, run the CLI directly:
Maintainers
Readme
Instead of installing with npm i, run the CLI directly:
npm create codebyamanv-server@latestI have created basic apis for when server starts and for User to understanding the how middlewares and utilities working
Packages used
{
"bcrypt": "^6.0.0",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
"express": "^5.1.0",
"express-rate-limit": "^8.2.1",
"helmet": "^8.1.0",
"mongoose": "^8.18.1",
"morgan": "^1.10.1",
"multer": "^2.0.2",
"zod": "^4.1.11"
}🔧 Update Env
Make sure to update your .env file with your MongoDB connection URL and other required variables. If you don’t update the environment variables, the server will throw errors while running.
🌐 Domain
Check the following files:
src/utils/sessionUtils.js
In these files, cookies are set/cleared with configuration like:
{
httpOnly: true,
secure: true,
sameSite: 'none',
path: '/',
// domain: 'Enter your domain here',
maxAge: 7 * 24 * 60 * 60 * 1000,
}if your backend is on subdomain most likely it will be than use .before domain ex: .domain
📩 Contact
For any queries, suggestions, or contributions, feel free to reach out:
- Name: Aman Verma
- Email: [email protected]
- GitHub: https://github.com/codebyamanv
