This repository contains the basic structure and organization of an Express.js project to help you get started quickly.
Follow these steps to get your Express project up and running:
-
Clone the repository:
git clone https://github.com/your-username/express-project-skeleton.git cd express-project-skeleton
-
Install dependencies:
npm install
-
Set environment to development
- create
.env
in root - set
ENV=development
- create
-
Run the server:
npm run start:dev
-
Open your browser: Navigate to
http://localhost:3000
to see your running app.
- Routes: Add new route files in
src/routes/
and import them insrc/index.js
. - Controllers: Add new controller files in
src/controllers/
. - Models: Add new model files in
src/models/
. - Middlewares: Add new middleware files in
src/middlewares/
.
Feel free to fork this repository and submit pull requests. Contributions are always welcome!