Skip to content

University of Sheffield Typing Evaluation Project

Notifications You must be signed in to change notification settings

chbrown/typing-evaluation

Repository files navigation

typing-evaluation

Pulls from Docker Hub

Getting started

  1. Install Node.js, NPM, and PostgreSQL:

    brew install node postgresql
    
  2. 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
    
  3. Clone this repository locally and cd into it:

    git clone https://github.com/chbrown/typing-evaluation.git
    cd typing-evaluation
    
  4. Install all dependencies:

    npm install
    
  5. 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.

Administration

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

Participation

Go to http://localhost:8080/

Contributors

Deployment

See DEPLOY.md for instructions on deploying the app to Digital Ocean using docker-machine.

Development

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) .

License

Copyright 2014-2019 Christopher Brown. MIT Licensed.

About

University of Sheffield Typing Evaluation Project

Resources

Stars

Watchers

Forks

Packages

No packages published