NIAEFEUP / tts-be

A platform where students can experiment with the possible combination of schedule options they can pick at the start of the semester
https://tts.niaefeup.pt
5 stars 1 forks source link

Automate/makefile #42

Closed Jumaruba closed 2 years ago

Jumaruba commented 2 years ago

💡 Additions

A makefile automation was added to the project. It ease the execution of the following tasks:

✔️ Testing

Initialize the project

Upload

The output should be similar to this:

{"status":"success","data":{"url":"https://tmpfiles.org/30588/1_faculty.sql"}}
{"status":"success","data":{"url":"https://tmpfiles.org/30589/2_course.sql"}}
{"status":"success","data":{"url":"https://tmpfiles.org/30590/3_course_unit.sql"}}
{"status":"success","data":{"url":"https://tmpfiles.org/30591/4_schedule.sql"}}

Download

Copy the URL fields from the upload section to fetcher/config.cfg. It should look similar to this:

[urls]
1_faculty=https://tmpfiles.org/dl/30588/1_faculty.sql
2_course=https://tmpfiles.org/dl/30589/2_course.sql
3_course_unit=https://tmpfiles.org/dl/30590/3_course_unit.sql
4_schedule=https://tmpfiles.org/dl/30591/4_schedule.sql

[upload]
url=https://tmpfiles.org/api/v1/upload
param_name=file
path=./data

Execute:

Clean

Execute: