Skip to content

Omjoa001/Web_Prosjekt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Quiz app "Kazoot" runs on localhost:3000. In order to reach this app on localhost:3000, it is necessary to complete the steps described below.

Check that you are in the correct folder/path while using the terminal. The right folder is where the code is downloaded.

Our quiz is dependent on a database which is already created. To connect to the database and get the server up and running two files named "config.js" must be created in the following folders:

  1. './server/src'
  2. './server/test'

Insert this database in './server/src/config.js'

process.env.MYSQL_HOST = 'YOURHOST'; process.env.MYSQL_USER = 'USER'; process.env.MYSQL_PASSWORD = 'PASSWORD'; process.env.MYSQL_DATABASE = 'YOURDATABASE';

Insert this database './server/test/config.js'

process.env.MYSQL_HOST = 'YOURHOST'; process.env.MYSQL_USER = 'USER'; process.env.MYSQL_PASSWORD = 'PASSWORD'; process.env.MYSQL_DATABASE = 'YOURTESTDATABASE';

First, start the server by installing the dependecies through a terminal.

Start server

cd server
npm install
npm start

The second step is to install the dependencies and bundle the client files through the terminal.

Bundle client files to be served through server

Install dependencies and bundle client files:

cd client
npm install
npm start

After the two steps above are completed, use a web browser and type in localhost:3000 in the URL. The QuizApp, Kazoot, will now start running and is playable.

To run tests on the client and server, do the following:

Run client tests:

npm test

Run server tests:

npm test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •