Skip to content

sentry0501/Server-Eat-with-new-friends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote:

url: https://mighty-plains-90447.herokuapp.com/
adminAccount: huykkk
adminPassword: 000000

How to run/build

Install packages

$ npm install

Set up database

$ Install xampp
$ Start Apache and MySQL modules
$ Add new account in phpmyadmin

Setup environment

$ Create a .env file, set up like:
PORT=8080
DB_HOST=localhost
DB_PORT=3306
DB_NAME=test
DB_USERNAME=test   #as your name  
DB_PASSWORD=123456  # as your password
SECRECT_KEY=1a2b3c4d
And put in backend folder
# remember do exactly

Run

$ npm start

Build

$ npm run build

Script

Drop all tables when schema change

$ Step 1: Copy content script/dropAllTables.sql and change name database
$ DROP PROCEDURE IF EXISTS `drop_all_tables`;
$ Step 2: Paste to SQL script in this database on remote and execute

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published