express-api-template
The express-api-template is a starter template for building a Node.js API using the Express.js framework. It is designed to provide a quick and easy way to get started with building a new API project, with support for both JavaScript and TypeScript.
This template includes the following features:
- A pre-configured Express.js server with basic mongodb setup.
- Support for both JavaScript and TypeScript.
- A simple example route to get you started.
- A pre-configured MVC architecture.
- A pre-configured ESLint configuration with examples.
- A pre-configured Prettier and Rome.
- A new scalable architecture.
To get started with this template, simply run the following command:
Installation
To create a new project using this template, run the following command:
npx express-api-template
After command runs successfully follow this steps
-
Step 1 [OPTIONAL]:
- If you want to update all the dependency to the latest version
npm update # or yarn update # or pnpm update
-
Step 2:
- Run this command to install all the dependency
npm install # or yarn install # or pnpm install
-
Step 3:
- Set up you're .env file.
- Run "start" or "dev" command in terminal using you're package manager to start you're project.