2022-07-05 19:19:00 +02:00
|
|
|
# Database
|
2022-07-04 18:50:05 +02:00
|
|
|
A quick-deploy database server
|
2022-07-05 19:17:09 +02:00
|
|
|
|
|
|
|
installation:
|
2022-07-05 19:18:46 +02:00
|
|
|
- download the code from [here](https://github.com/FIUSdevelopment/database-server/archive/refs/tags/1.0.0.zip)
|
2022-07-05 19:17:09 +02:00
|
|
|
- change the password in password.js (it need to be an array)
|
|
|
|
- for start do npm start
|
|
|
|
|
|
|
|
Save data in in ./data/database.json
|
|
|
|
|
|
|
|
This is the link:
|
2022-07-05 19:19:32 +02:00
|
|
|
|
2022-07-05 19:17:09 +02:00
|
|
|
ip://api/<auth-code>/database to get all db
|
2022-07-05 19:19:32 +02:00
|
|
|
|
2022-07-05 19:17:09 +02:00
|
|
|
ip://api/<auth-code>/database/<name> search name in the database
|
2022-07-05 19:19:32 +02:00
|
|
|
|
2022-07-05 19:17:09 +02:00
|
|
|
ip://api/<auth-code>/database/<name>/set/<value> set a name's value in the database
|
2022-07-05 19:19:32 +02:00
|
|
|
|
2022-07-05 19:17:09 +02:00
|
|
|
ip://api/<auth-code>/database/<name>/remove remove <name> in the database
|