Skip to content

Tool for expert crowdsourcing design evaluation for research.

License

Notifications You must be signed in to change notification settings

dortheimer/design_evaluation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • Node version 14
  • A database that is supported by Sequelize

Installation

First, make sure you have node installed on your system

node -v

Clone the repository and install dependencies:

git clone https://github.com/dortheimer/design_evaluation.git
cd design_evaluation
npm i

Set up a database (on any Sequelize supported database). This is a SQL example for creating a new schema:

CREATE DATABASE designEvaluation;

Create local config file by duplicating the default configuration file:

cp config/default.json config/local.json

Edit the backend config file. Make sure to provide the database connection configuration.

vi config/local.json

Edit the frontend config file.

vi .env

Now you can build the database schema. Run migrations to build the DB:

npx sequelize-cli db:migrate

Running production server

Run the build command to produce an optimized front-end application:

npm run build

Start the server. You may want to run the server using a process manager like PM2.

node server.js

Running a development server

The development server does not use an optimized build and updates the front-end with every code change. To run the development server we have to run two separate node processes.

npm start #this runs react-create-app
node server.js #this runs the back-end (in another terminal window)

You may also add some mock content to the DB

npx sequelize-cli db:seed:all

About

Tool for expert crowdsourcing design evaluation for research.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published