docs: update
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
# unittcms Backend
|
||||
|
||||
## Install dependencies
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
## Set Environmental variable
|
||||
|
||||
Create `.env` File
|
||||
|
||||
```
|
||||
FRONTEND_ORIGIN=http://localhost:8000
|
||||
PORT=8001
|
||||
SECRET_KEY=your-secret-key
|
||||
```
|
||||
|
||||
## Set up database
|
||||
|
||||
```bash
|
||||
npm run migrate
|
||||
```
|
||||
|
||||
## Run the development server
|
||||
|
||||
```bash
|
||||
node --env-file=.env index.js
|
||||
```
|
||||
|
||||
## Database operation command
|
||||
|
||||
### drop table
|
||||
|
||||
```bash
|
||||
npm run drop
|
||||
```
|
||||
|
||||
### add seed data
|
||||
|
||||
```bash
|
||||
npm run seed
|
||||
```
|
||||
@@ -3,7 +3,8 @@
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node index",
|
||||
"start": "node --env-file=.env index",
|
||||
"dev": "node index",
|
||||
"migrate": "bash scripts/migrate.sh",
|
||||
"seed": "bash scripts/seed.sh",
|
||||
"drop": "bash scripts/drop.sh"
|
||||
|
||||
Reference in New Issue
Block a user