create-express-ts-rana
v1.0.5
Published
A CLI tool to quickly scaffold a ready-to-use Express.js + TypeScript project with authentication, JWT, MongoDB, and cloud upload support.
Maintainers
Readme
create-express-ts-rana
A CLI tool to quickly scaffold a ready-to-use Express.js + TypeScript project with authentication, JWT, MongoDB, and cloud upload support.
Features
- Express.js with TypeScript
- User authentication (sign up, sign in, sign out)
- JWT-based authentication
- MongoDB integration (via Mongoose)
- Cloudinary file upload support
- Secure password hashing with bcryptjs
- Ready-to-use scripts for development and production
Usage
npx create-express-ts-rana my-appOr, if installed globally:
create-express-ts-rana my-appThis will create a new folder my-app with all dependencies installed.
Scripts
npm run dev— Start the server in development mode with hot reload (ts-node-dev)npm start— Start the compiled server in production mode
Environment Variables
Copy .env and fill in your values:
PORT=8000
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
NODE_ENV=development
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secretLicense
MIT
