A simple REST API using Node.js, Express, ES6 modules (.mjs
), and Swagger for documentation.
- CRUD operations
- Swagger UI for API documentation
- ES6 modules (
.mjs
)
- Node.js (14+)
- npm
git clone
npm install
npm run server
Server runs at http://localhost:3000
.
.
├── src
│ ├── controllers
│ │ └── exampleController.mjs
│ ├── routes
│ │ └── index.mjs
│ │ └── exampleRoutes.mjs
│ ├── models
│ │ └── exampleModel.mjs
│ ├── app.mjs
├── package.json
└── README.md
Access Swagger UI at http://localhost:3000/api-docs
.
- Dev mode (nodemon):
npm run server
MIT
Kelvin D
- Fork the repo.
- Create your branch (
git checkout -b feature/fooBar
). - Commit changes (
git commit -am 'Add some fooBar'
). - Push to branch (
git push origin feature/fooBar
). - Create a Pull Request.