Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy gyft2 as a web service #2

Open
athityakumar opened this issue Jan 7, 2019 · 6 comments
Open

Deploy gyft2 as a web service #2

athityakumar opened this issue Jan 7, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@athityakumar
Copy link
Member

Instead of cloning the repo and running the script, we could rather have students uploading their downloaded html file to our website and downloading an ICS file in return. A simple flask app, with no db requirements and just providing an ICS file to download would do. 😄

WDYT?

@xypnox
Copy link
Collaborator

xypnox commented Jan 8, 2019

It is a great idea. 👍

@xypnox xypnox added the enhancement New feature or request label Jan 8, 2019
@Raghwendra-Dey
Copy link
Contributor

Could i try to make a django app for this?
The app could be simple like only a file upload option and two questions whether they are uploading the data.txt file or the timetable.html file, and if html file then whether they want the ics or data.txt output.

@athityakumar
Copy link
Member Author

@Raghwendra-Dey - Hmm, but Django is pretty heavy. And as our use-case is pretty simple with very minimal requirements (no db, just 1 route) - I think it makes more sense to go with something lighter like flask. 😄

@Raghwendra-Dey
Copy link
Contributor

@athityakumar but without db how will we take the timetable of the user as input?

@athityakumar
Copy link
Member Author

I thought we'd be computing everything in memory and just provide a downloadable ICS file. What do you think of storing in db?

@Raghwendra-Dey
Copy link
Contributor

I am not thinking of storing anything but, to get the html timetable of the user we need some db no? where the user would be submitting the timetable through forms and then after processing we offer them to download the ics file and then delete their timetable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants