/bigfive-web

Website for taking personality tests

Primary LanguageJavaScriptMIT LicenseMIT

bigfive-web

Prod: https://bigfive-test.com

Latest: https://latest.bigfive-test.com

Website for five factor model of personality based on work from IPIP-NEO-PI.

Tests and evaluation is gathered from ipip.ori.org.

See it live @ bigfive-test.com

The frontend is written in nodejs using the Nuxt.js framework.

Preview

Preview

Installation

Download and install nodejs, git and vercel-cli

Make sure nodejs version is equal or greater than 12

The results are saved to a mongodb database, so for a full test you either need a running mongodb or an instance at mlab

Development

add .env file

MONGODB_URI=mongodb://<your-mongodb-url>
MONGODB_COLLECTION=results
BASE_URL=http://localhost:3000

Run the setup script to install all dependencies

yarn run setup

Compiles and hot-reloads for development

yarn dev

Run your unit tests

yarn test

Lint

yarn lint
yarn lintfix

Deploy using vercel-cli

Add a secret with the mongodb connection. Example:

vc secrets add mongodb_uri mongodb://<username>:<password>@domain.com:53659/bigfive

Update now.json to match your environment. You will need to change the properties scope, alias and env.BASE_URL

Update nuxt.config.js to match your environment. You will need to change the base_url and env.API_URL and the ids for analytics and amplitude.

Run to deploy

vc --confirm

Deploy using Docker

Todo

Related

Help wanted

If you want to help by translating the items to other languages this is how you do it.

License

MIT

About

TODO