42 lines
403 B
Markdown
42 lines
403 B
Markdown
# UnitTCMS Backend
|
|
|
|
## Install dependencies
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Set Environmental variable
|
|
|
|
Create `.env` File
|
|
|
|
```
|
|
NEXT_PUBLIC_BACKEND_ORIGIN=http://localhost:3001
|
|
```
|
|
|
|
## Set up database
|
|
|
|
```bash
|
|
npm run migrate
|
|
```
|
|
|
|
## Run the development server
|
|
|
|
```bash
|
|
npm run start
|
|
```
|
|
|
|
## Database operation command
|
|
|
|
### drop table
|
|
|
|
```bash
|
|
npm run drop
|
|
```
|
|
|
|
### add seed data
|
|
|
|
```bash
|
|
npm run seed
|
|
```
|