Documentation
Next JS
Run Localy

Run Quiz Galaxy - NextJS on your local machine

Prerequisites

Steps

  1. Create a .env file in the root of the project, copy the content from the .env.example file and fill in the values
Hello
  • The AUTH_SECRET can be any string, it is used to encrypt the user's password
  1. After you have the .env file, you can run the following commands inside a terminal in the root of the project:
yarn install
OR
npm install
  1. After the installation is done, you need to add the initial data to the database. You can do this by running the following command:
yarn typeorm:migrate
OR
npm run typeorm:migrate
  • This command will create the tables in the database and add the quiz questions inside a table
  1. After the migration is done, you can run the project by running the following command:
yarn dev
OR
npm run dev