set up sqlite
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
- Node.js
|
||||
- Express
|
||||
- MySQL
|
||||
- SQLite
|
||||
|
||||
## Install dependencies
|
||||
|
||||
@@ -12,8 +12,28 @@
|
||||
npm install
|
||||
```
|
||||
|
||||
## Set up database
|
||||
|
||||
```bash
|
||||
npm run migrate
|
||||
```
|
||||
|
||||
## Run the development server
|
||||
|
||||
```bash
|
||||
node dev
|
||||
npm run start
|
||||
```
|
||||
|
||||
## Database operation command
|
||||
|
||||
### drop table
|
||||
|
||||
```bash
|
||||
npm run drop
|
||||
```
|
||||
|
||||
### add seed data
|
||||
|
||||
```bash
|
||||
npm run seed
|
||||
```
|
||||
Reference in New Issue
Block a user