-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CodeForCharlotte/master
converted server to typescript (#8)
- Loading branch information
Showing
24 changed files
with
5,386 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# The Lunch Project | ||
|
||
|
||
## Server Configuration Setup | ||
docker pull mysql | ||
docker run --name db-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=UNCCrugby_49 -d mysql | ||
docker pull postgres | ||
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres | ||
|
||
#installation to do db migrations | ||
npm install -g sequelize-cli | ||
npm install -g mysql2 | ||
TODO | ||
|
||
#command to update database with latest migrations. | ||
sequelize db:migrate | ||
TODO | ||
|
||
#command to create databae migrations | ||
sequelize migration:create | ||
TODO | ||
|
||
## Run client & server | ||
`cross-env DB_HOST="<HOST>" DB_USERNAME="<YOUR_DB_USERNAME>" DB_PASSWORD="<DB_PASSWORD>" DB_NAME="<DB_NAME>" node fuse` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.