/personality-test

Website for personality test

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Personality Test Code Challenge

How to run the app

This app can run in two ways:

  1. Your local environment
  2. Docker

Both ways are explained below. If application was started correctly, you should see this view:

Initial View

Running on local environment

Follow the steps below to run this app on your local environment

  1. Install and start Redis 3.x on default port
  2. Install latest Node
  3. Checkout this repository
  4. npm install
  5. npm run build
  6. npm start

The app is now available via browser on default HTTP port on all the IPs your environment has.

If the last step fails, change the port in server.cfg.json file as it listens on all IPs and on the default 80 (HTTP) port.

Running in Docker

Follow the steps below to run this app in Docker. You need to use sudo or be root to be able to execute docker commands

  1. Install Docker and docker-compose
  2. Checkout this repository
  3. docker-compose up

The app is now available via browser on default HTTP port on all the IPs your environment has. Port can be changed in docker-compose.yml file, ports section

How to run automated tests

Top run the automated tests, follow the steps below

  1. Install latest Node
  2. Checkout this repository
  3. npm install
  4. npm test