https://github.com/korospace/be-wa-blaster
https://github.com/korospace/be-wa-blaster
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/korospace/be-wa-blaster
- Owner: korospace
- Created: 2024-08-17T12:57:38.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-31T13:07:12.000Z (over 1 year ago)
- Last Synced: 2025-01-01T05:43:04.331Z (over 1 year ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# SETUP
1. install all libs
```
npm install
```
2. copy env_example to .env
```
cp .env.example .env
```
3. make sure your database is READY!
4. run migration & seeder
5. run app
```
npm run start
```
# MIGRATION TABLE
1. create new migration file
```
npx sequelize-cli migration:generate --name create-user-table
```
2. run migration
```
npx sequelize-cli db:migrate --env production
```
3. rollback migration
```
npx sequelize-cli db:migrate:undo:all --env production
```
# SEEDER TABLE
1. create new seeder file
```
npx sequelize-cli seed:generate --name user-seeder
```
2. run seeder
```
npx sequelize-cli db:seed:all
// OR
npx sequelize-cli db:seed --seed 20240817102423-user-seeder.js
```