Tạo file .env ở thư mục gốc. Tạo database "Edoo" Ví dụ:
SERVER_ADDRESS=localhost
SERVER_PORT=2344
SERVER_KEY=com.fries
SERVER_NAME=localhost
DB_HOST=localhost
DB_USER=root
DB_NAME=edoo
DB_PASSWORD=
DB_CHARSET=utf8
PATH_STATIC_FILE = /Users/TooNies1810/Downloads/upload-file
PATH_FILE_UPLOAD = /attach
PATH_EVENT_UPLOAD = /event
PATH_ZIP_TEMP = /zip-temp
SERVER_STATIC_FILES = localhost
API_FIREBASE_KEY = bla
API_KEY_SENDGRID = blabla
Chạy knex:
knex migrate:latest
knex seed:run
https://docs.google.com/spreadsheets/d/1HvkoSS6OSoEWc6cfFKgmyFgaEji7WcQchsxgEdgELSI/edit?usp=sharing
- Set timzone cho server về UTC
npm start