TriviaNow is a web application that allows users to play trivia games and test their knowledge across various categories. This repository contains the source code and project files for TriviaNow.
- User registration and authentication
- Multiple trivia categories to choose from
- Randomized questions for each game session
- Score tracking and leaderboard
- Timed gameplay
- Responsive design for different screen sizes
To run TriviaNow locally, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/lzhan195/TriviaNow.git
- Navigate to the project directory:
cd TriviaNow
- Install the required dependencies:
npm install
- Configure the environment variables:
- Create a
.env
file in the root directory. - Set the following variables in the
.env
file:DB_HOST
: The hostname of your database serverDB_PORT
: The port number of your database serverDB_NAME
: The name of the databaseDB_USER
: The username for connecting to the databaseDB_PASSWORD
: The password for connecting to the databaseJWT_SECRET
: A secret key for JWT authentication
- Start the development server:
npm start
- Open your web browser and access
http://localhost:3000
to view TriviaNow.
- Node.js
- Express.js
- MongoDB
- Mongoose
- Passport.js
- JWT
- HTML/CSS
- Bootstrap
TriviaNow is licensed under the MIT License.