Skip to content

Teacher/Student Platform for assignments (Quests) to learn and gain experience (XP) to level up and compare with your peers. School Project

Notifications You must be signed in to change notification settings

SowinskiBraeden/XP-System

Repository files navigation

XP-System

This school project is for my teacher to have students log in and check out their XP and assignments. This website application is not available online, this is just a locally run website at our school.

For a full tutorial on website functionality check out the documenation here.

If you'd like to use this yourself, you'll need to create a teacher, it must be done by a site admin.

There is no default site admin so you will need to set one up. To set up a site admin, you'll need to create the site admin in the database in a collection called users, and insert a document via MongoDB Compass. Format the document as shown: { "role": "Admin", "name": your name, "email": your email, "password": your encrypted password }

Replace your name with the name you specify, your email with the email you would like to use to login, and replace your encrypted password with your Encrypted Password

The ID for your admin document should be auto generated by MongoDB Compass when you insert the document.

Requirements :

  1. Node.js
  2. MongoDB

Getting Started with Code :

  1. Set up MongoDB on your computer.
  2. Clone repo from https://github.com/Braeden57/XP-System.git
  3. Run npm install to install dependencies.
  4. Duplicate .env.example and rename the new file to .env. Edit to your configurations.
  5. Run npm start to boot up server.
  6. Go to http://localhost:8080. Or Whatever you set it to in the .env file.

Setting up MongoDB

  1. Install mongodb and follow the setup steps.
  2. Step by step instructions

Accessing the Database

  1. Locally this will use any db you set the DB_URI to in the .env file.
  2. You can use MongoDB compass app to view the db and edit any information stored.
  3. Or connect it to an external db by changing the DB_URI in the .env to your db key.

Encrypting Your Password

  1. To encrypt your password while creating the admin account. Go into the config folder,
  2. follow the instructions in encrypt.js and run encrypt.js via node node encrypt.js

About

Teacher/Student Platform for assignments (Quests) to learn and gain experience (XP) to level up and compare with your peers. School Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published