diff options
| author | Tom Harley | 2018-07-09 13:29:58 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-07-09 13:29:58 +0100 |
| commit | 6dee9e0aa671b292fae0d4eeb9fc2343b00d6a77 (patch) | |
| tree | 9f27f522ee4789bc819520f84c5318cdea34a555 /README.md | |
| parent | disgusting hotfix (diff) | |
| download | medicine-6dee9e0aa671b292fae0d4eeb9fc2343b00d6a77.tar.gz medicine-6dee9e0aa671b292fae0d4eeb9fc2343b00d6a77.zip | |
Made more useful build/run scripts and instruction
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 33 |
1 files changed, 16 insertions, 17 deletions
@@ -1,27 +1,26 @@ # README -## Instructions to install: +## Installing -$ ./getmeall.sh -$ yarn +This server has a number of dependencies. A shell script has been supplied to +automatically fetch these resources; running `getmeall.sh` should fetch all +required resources, and build them inside the project folder. If you already +have some of these resources installed on your system, comment out the +appropriate line in `getmeall.sh`. -## Instructions to run postgres & cacheing: +## Running +Both PostGres and Redis will need to be running before the server is started: +``` $ ./runmepostgres.sh $ ./runmeredis.sh +``` +Then, the server itself can be run with `yarn start`. Alternatively, to run in +single-instance mode (recommended for testing), use `yarn local`. -## Instructions to run server: +To monitor a `yarn start`ed server, use `yarn console`. -$ yarn start +To stop a `yarn start`ed server, use `yarn stop`. -### Instructions to monitor server - -$ yarn console - -### Instructions to stop server - -$ yarn stop - -## To test: - -$ yarn test +To run tests on the server, use `yarn test`. Specific tests can be run using +other `yarn` tasks listed in `package.json`. |
