1.3 KiB
1.3 KiB
XP-System
School Project
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.
To create a teacher, it must be done by a site admin. You'll need to create the site admin in the
database in a collection called users and set insert a document formatted as shown:
{ "_id": your generated id, "role": "Admin", "name": your name, "email": your email, "password": your encrypted password }
Requirements :
Getting Started with Code :
- Set up MongoDB on your computer.
- Clone repo from https://github.com/Braeden57/XP-System.git
- Run
npm installto install dependencies. - Duplicate
.env.exampleand rename the new file to.env. Edit to your configurations. - Run
npm startto boot up server. - Go to http://localhost:8080. Or Whatever you set it to in the
.envfile.
Accessing the Database
- Locally this will use any db you set the DB_URI to in the
.envfile. - You can use MongoDB compass app to view the db and edit any information stored.
- Or connect it to an external db by changing the DB_URI in the
.envto your db key.