https://github.com/drownie/backend-express-codebase
Backend Express Codebase
https://github.com/drownie/backend-express-codebase
backend expressjs nodejs
Last synced: 3 months ago
JSON representation
Backend Express Codebase
- Host: GitHub
- URL: https://github.com/drownie/backend-express-codebase
- Owner: Drownie
- Created: 2024-03-05T14:27:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-20T15:12:23.000Z (over 1 year ago)
- Last Synced: 2025-03-30T09:16:20.181Z (about 1 year ago)
- Topics: backend, expressjs, nodejs
- Language: TypeScript
- Homepage:
- Size: 91.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Backend Express Codebase
This is template for backen express application. You can fork or clone this template.
## Requirement
**Engine** : Node >= v18.0
## How to Start?
1. Install Dependency
```bash
npm install
```
2. Start DB
You can use db from docker in `compose.yml` or use your own db
3. Create `env`
You need to create an env file in the root. For example of the env you can look from `.env.example`. The default env file name is `.env.dev`.
4. Create Migrations
You need to run this migrations to create a sample db.
```bash
npm run migrations:dev:gen // Generate Migrations
npm run migrations:dev:run // Apply Migration to DB
```
5. Run the development
To run the development env, you can run this bash command.
```bash
npm run local:dev:watch
```