FrankJi1019 / quiz-app

A full stack quiz app that allows user to create quiz, or try other user's quiz.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quizzy

Set up

Environment Setup

  1. Please make sure you have dotnet, Node, and SQL Server installed on your device.

  2. Add the SQL Server connection string in the "appsetting.json"

  3. Open a terminal and direct to the Server folder, where the current directory should contain "Program.cs"

  4. Execute dotnet ef database update

  5. [Optional] To add in mock data, execute dotnet run seeddata.

    1. Note that this will clear all the existing data in the database
    2. If you do not want to clear the database, please comment out line 15-19 in "Seed.cs"
  6. Add the .env file to the client folder, below is a example .env file

REACT_APP_SERVER_URL=https://localhost:8000

REACT_APP_COGNITO_USER_POOL_ID=us-east-1_zgpnQkiko
REACT_APP_COGNITO_CLIENT_ID=qr1el3uvai1mckplgqto6ps8g
REACT_APP_COGNITO_REGION=us-east-1

Running the Project

  1. Open a terminal and direct to the Server side folder, where the current directory should contain "Program.cs"
  2. Execute dotnet run
  3. Open another terminal and direct to the client side folder, where the current directory should contain "package.json"
  4. Execute npm start

About

A full stack quiz app that allows user to create quiz, or try other user's quiz.


Languages

Language:TypeScript 52.2%Language:C# 47.2%Language:HTML 0.6%Language:CSS 0.0%