create-uk-node-server
v1.1.3
Published
A CLI tool to quickly scaffold server projects with JavaScript or TypeScript templates
Maintainers
Readme
Server Package CLI
A command-line tool to quickly scaffold server projects with JavaScript or TypeScript templates.
Installation
npx create-uk-node-serverThe tool will prompt you to:
- Choose your preferred language (JavaScript or TypeScript)
- Enter your project name
What it does
This tool creates a new server project with:
- Express.js setup
- Basic folder structure (controllers, middlewares, models, routes, utils)
- Database configuration
- Environment variables setup
- Basic routing structure
Project Structure
After running the tool, you'll get a project with this structure:
your-project/
├── src/
│ ├── config/
│ │ └── db.config.js
│ ├── controllers/
│ │ └── index.controller.js
│ ├── middlewares/
│ │ └── errorHandler.js
│ ├── models/
│ │ └── user.model.js
│ ├── routes/
│ │ └── index.route.js
│ │ └── user.route.js
│ └── utils/
│ └── general.js
├── .env
├── .gitignore
├── index.js
├── package-lock.json
└── package.jsonGetting Started
Run the CLI tool
Choose your language preference
Enter your project name
Navigate to your project directory
Create
.envfileAPP_ENV=development PORT=3000 APP_URL=http://localhost:3000 DB_URL=mongodb://localhost:27017/your-databaseRun
npm startto start your server
License
ISC
Contributing
Feel free to submit issues and enhancement requests!
