-
Install Node.js, NPM, and PostgreSQL:
brew install node postgresql
-
Start PostgreSQL listening at
127.0.0.1:5432
(there might be additional setup if this your first time starting it):brew services start postgresql # you might need to might be more
-
Clone this repository locally and
cd
into it:git clone https://github.com/chbrown/typing-evaluation.git cd typing-evaluation
-
Install all dependencies:
npm install
-
Start the Node.js server:
PORT=8080 npm start
That command will handle creating the database and setting up the tables, then start the application server. It will not exit until you press
Ctrl-C
.
Go to http://localhost:8080/admin/
Functionality available in the admin tool:
- Create / edit / delete stimulus sentences
- View participants and their responses
- Create / edit administrator accounts
Go to http://localhost:8080/
- Tom Stafford t.stafford@sheffield.ac.uk
- Colin Bannard colinbannard@gmail.com
- Christopher Brown audiere@gmail.com
See DEPLOY.md
for instructions on deploying the app to Digital Ocean using docker-machine
.
After making any changes to the UI source code (.js
or .css
files),
you must rebuild the compiled output:
npm run prepack
You may want to copy the live database to your local machine, e.g., for debugging purposes. Prepare the local database and dump the remote database into it:
dropdb typing-evaluation; createdb typing-evaluation
docker exec db pg_dump -U postgres typing-evaluation | psql typing-evaluation
Rebuild docker image:
docker build -t chbrown/typing-evaluation:$(npm run version --silent) .
Copyright 2014-2019 Christopher Brown. MIT Licensed.