No description https://friends42.fr
Find a file
2025-01-29 15:22:50 +01:00
maps update: ran prettier, removed stuff and added tutor location 2025-01-11 17:40:33 +01:00
routes update: fixed issue with the bot update 2025-01-26 15:05:07 +01:00
static update: fixed prod 2025-01-14 14:27:09 +01:00
templates update: merged note_tut 2025-01-20 17:31:35 +01:00
upgrades update: ran prettier, removed stuff and added tutor location 2025-01-11 17:40:33 +01:00
.gitignore added run_redis.sh file 2025-01-29 15:22:50 +01:00
api42.py update: format 2025-01-20 17:10:52 +01:00
app.py update: removed some cruft 2025-01-15 20:28:56 +01:00
config.py update: made proxy domain configurable 2025-01-16 13:51:51 +01:00
config.sample.py update: ran prettier, removed stuff and added tutor location 2025-01-11 17:40:33 +01:00
data_exporter.py update: ran prettier, removed stuff and added tutor location 2025-01-11 17:40:33 +01:00
db.py fix note disparait quand actualisation 2025-01-29 14:10:22 +01:00
flake.lock update: proxy now works lol 2025-01-15 15:54:52 +01:00
flake.nix changed back to update 2025-01-27 14:26:50 +01:00
globals.py update: ran prettier, removed stuff and added tutor location 2025-01-11 17:40:33 +01:00
LICENCE.txt friends42: LICENCE.txt & Remove debug tools 2023-07-27 14:54:15 +02:00
qodana.yaml friends42: Cleanup, fix potential security issue, update paris piscine 2023-08-06 23:43:50 +02:00
README.md update: changed to fft and removed useless stuff 2025-01-11 14:20:03 +01:00
requirements.txt maps: havre support 2023-11-20 16:49:06 +01:00
ruff.toml update: some input cleaning (lower+trim in most case) 2025-01-13 23:27:51 +01:00
run_redis.sh added run_redis.sh file 2025-01-29 15:22:50 +01:00
scheme.sql update: merged note_tut 2025-01-20 17:31:35 +01:00
scrap_issues.py update: format 2025-01-20 17:10:52 +01:00
updater.py update: removed some cruft 2025-01-15 20:28:56 +01:00

Friends42

Developer quick-start

You'll need the followings:

  • Python 3
  • Redis
  • 42 API key
  • Telegram key [optional]
git clone git@github.com:Maix0/fft.git && cd fft
pip install -r requirements.txt
vim config.py
python3 app.py

Then head to http://localhost:8080/ (You will need to add this URL to the authorized list of redirect URI on 42)

How to add a feature

  • Create your feature
    • You'll need to use basic features (no flask.g, middleware, etc) and adapt to the existing code style if possible.
    • If you are doing SQL, you must place it in the db.py file, it is forbidden to concat/str template anything to a SQL request
  • Create a push request with in it a list of features added, config changed and sql changes.
  • Post it ! :)
  • Note: I keep the right to accept or reject features, you can contact me through Discord if you'd like to be sure before doing the work

How to add a campus

  • Copy maps/_template.py to maps/campus_name.py
  • Create a map of your own campus (Feel free to look at paris.py)
  • Add your campus to maps/maps.py as an import and to the list (the number is the campus-id) (located end of file)
  • Add your campus to the update list in config.sample.py
  • Create a push request with your changes and I'll come back to you quickly ! :)