Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

BDE-ISATI/wei-api-v3

Repository files navigation

wei_app_server

Bridge between the WEI V2 Website and the database which holds player data and challenges that can be done during the ESIR 2022 WEI (Integration Week End)

Installing

This server is meant to run on heroku, but any server will work really.

YOU NEED TO SETUP SOME ENVIRONMENT VARIABLES FIRST:

  • GOOGLE_API_KEY: The google key used to access the Sheet api (see google-spreadsheet docs)
  • GOOGLE_SPREADSHEET_ID: The ID of your spreadsheet you read from. Can be obtained from the link. NOTE: Your spreadsheet must be in public read access
  • IMGUR_ID: The imgur api id (see IMGUR Api client creation)
  • MAIL_ADMIN: The mails of the admins of the WEI, separated by ; (ex: bertrand@google.com;jacques@google.com)
  • MAIL_LOGIN: The mail you will send emails from, usually one of the admins. MUST BE A GOOGLE MAIL
  • MAIL_PASSWORD: Password of said google mail
  • REDIS_URL: Database url in redis:://username:password@adress format. I used a simple free redis cloud database in this case (see redis labs)
  • SERVER_URL: The adress of the server this code is running on (usually https://APP_NAME.herokuapp.com if you run this code on heroku)

About

WEI Server to fetch users, challenges and leaderboards

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors