add cors support

This commit is contained in:
Dave Horton
2019-12-09 10:58:35 -05:00
parent 15f120108f
commit 1296b15675
6 changed files with 22 additions and 13 deletions

View File

@@ -28,8 +28,7 @@ HTTP_PORT=4000 node app
#### Running the test suite
To run the included test suite, you will need to have a mysql server installed on your laptop/server. You will need to set the MYSQL_ROOT_PASSWORD env variable to the mysql root password before running the tests. The test suite creates a database named 'jambones_test' in your mysql server to run the tests against, and removes it when done.
```
export MYSQL_ROOT_PASSWORD=foobar
npm test
MYSQL_ROOT_PASSWORD=foobar npm test
```
#### Testing a deployed server