cch5ng / fe_interview

[wip] revamp of front end interview app
https://fe-interview.herokuapp.com
2 stars 0 forks source link

FE_Interview

Purpose

Credits

Dependencies

Database Setup

1 Create a database named fe_interview_db.

2 Create a database user with admin rights for the new database (read, create, update, delete). Record the user's password.

Setup (local/development)

Install files

1 Install root-level files.

yarn install

2 Install back-end files.

cd server && yarn install

3 Install front-end files.

cd ../client && yarn install

Server setup

1 Convert questions from markdown source files to JavaScript.

cd ../server && node test_md_to_json.js

2 Create the database (Postgres).

yarn run configure

3 Copy environment variables file in server root directory.

cp .env.example .env

4 Update server environment variables (in .env file).

5 Seed the database.

node seed_db.js

Run the servers

1 Start the back-end server.

yarn run start

2 Start the front-end server.

cd ../client && yarn run start

3 From a browser, open http://localhost:1234

Automated Tests

Front-end

1 yarn run test

Using the Application

To create a random front-end interview test

1 Click New Test.

2 Name the test and select how many questions from each category to include.

3 At this time, it is expected that the user will take the test immediately after it is generated.

Deploy

Credits