1.0.4 • Published 5 months ago
@sid.vish/create-express-skeleton v1.0.4
Create Express Skeleton
Overview
@sid.vish/create-express-skeleton
is a simple CLI tool that helps you quickly set up a basic Express.js server skeleton with essential configurations.
Features
- Generates an Express.js project structure.
- Includes basic routing and middleware setup.
- Automatically installs dependencies.
Installation
To install the package globally:
npm i -g "@sid.vish/create-express-skeleton"
Or use npx
(no installation required):
npx "@sid.vish/create-express-skeleton"
Usage
To create a new Express.js project, first create a folder and navigate into it:
mkdir my-express-app && cd my-express-app
Then, run:
npx "@sid.vish/create-express-skeleton"
This will create a folder my-express-app
with all necessary files.
Running the Server
Once the setup is complete,
Navigate to the project folder:
cd my-express-app
Start the server:
npm start
Your Express.js server will be running at:
http://localhost:5000
Project Structure
my-express-app/
│-- package.json
│-- src/
│ ├── app.js
│ ├── routes/
│ ├── controllers/
│ ├── config/
│ ├── middleware/
│ ├── models/
│-- .env
│-- .server.js
│-- README.md
Happy coding! 🚀