This repository only contains the server's code. For the main repository, see Truly-Depressed-Developers/study-notes
- Data storage in database
- Basic login and register
- Data access and modification through appropriate endpoints
- XAMPP
- Node.js
- Launch Apache and MySQL in XAMPP Control Panel
- Open localhost/phpmyadmin and import database from SQL file
- (optional) Create new user and grant him access to sheepyourhack4 database
Clone this repo on your local machine
git clone https://github.com/MBrosik/sheepyourhack4-server.git
cd sheepyourhack4-server
Install node modules
npm install
Update IP and login credentials in Database.ts. If you skip 3rd step in Database, default should be:
- host: "localhost"
- user: "root"
- password: ""
- database: "sheepyourhack4"
Run build once to create build folder
npm run build
Start server
npm run start
| Endpoint (POST) | Required data | Returned data |
|---|---|---|
| /login |
|
|
| /register |
|
|
| /get_one_question |
|
|
| /add_question |
|
|
| /add_answer |
|
|
| /get_universities |
list of:
|
|
| /get_courses |
|
list of:
|
| /get_subjects |
list of:
|
|
| /get_notes |
|
list of:
|
| /get_one_note |
|
|
| /add_note |
|
|
This project is licensed under MIT license.
