r/flask • • Nov 09 '19

Try my flask application.

Hi everyone!

Not sure if it's against the rules, but I deployed my flask application and I would love if you could try it and give some feedback.

The application called Student Helper and it helps you organize your schedule, lectures, exams, etc...

https://thestudenthelper.herokuapp.com/

0 Upvotes

35 comments sorted by

8

u/dAnjou Advanced Nov 09 '19 edited Nov 09 '19

Looks like a PHP application to me.

Seriously though, you've posted in /r/flask and Flask is a backend framework. What Flask-related thing are we supposed to give feedback on if you don't provide the source code?

I found a GitHub repo anyway and, duuude, there's a comment saying you won't show the code because of security reasons and yet you've hardcoded and therefore fully exposed some email credentials. And that login decorator seems pretty useless to me as well unless you there's more in the request handlers.

UPDATE Just checked the Git history and all the code is in the initial commit, it's all still there and visible.

Take down that repo now and change your email credentials!

-1

u/Johnny6_Blaze9 Nov 09 '19

I just wanted people to try the app itself, not comment on my code.

And thanks for reminding me about the GitHub repo, totally forgot to check that, I didn't even want to put it on GitHub.

1

u/dAnjou Advanced Nov 09 '19

But how is the app itself related to Flask?

-2

u/Johnny6_Blaze9 Nov 09 '19

It's made using Flask.

2

u/dAnjou Advanced Nov 09 '19

...

-1

u/Johnny6_Blaze9 Nov 09 '19

It says in the title "try my flask application".

If you don't have any feedback on the app itself, then I don't need your opinion.

If you think my post is against the rules of this subreddit, simply report it and the mods will delete it.

Any other feedback from you in not required or wanted.

Thanks for reminding me about the GitHub repo tho.

4

u/mippen Nov 09 '19

How incredibly rude.

1

u/Johnny6_Blaze9 Nov 10 '19

It's not rude if I didn't ask for his opinion about something yet he decided to say it.

4

u/alex_beluga Nov 10 '19

It is. He’s helping out by providing constructive criticism which he doesn’t owe you. The best way to improve is to listen and resist the temptation os snapping back.

1

u/Johnny6_Blaze9 Nov 10 '19

The only constructive criticism I wanted is people's opinion of the app itself, I made a Flask app and wanted people to try it, he said it looks like a PHP application and the app itself is not related to Flask.

Yeah that's really a constructive criticism.

The only useful thing he said was reminding me to edit my Github repo, for which I thanked him twice and credited him on GitHub.

He didn't say anything else that's helpful.

→ More replies (0)

4

u/dAnjou Advanced Nov 09 '19

I think it's fucking irresponsible to put an app live with such glaring security holes and you can't even keep your own email credentials secret.

You desperately need any feedback you can get on your BACKend. There's a term for what you're doing.

For feedback on the FRONTend there are other subreddits.

And if you wanna know how useful your app is, I'm sure there are countless university related subreddits.

0

u/Johnny6_Blaze9 Nov 10 '19 edited Nov 10 '19

There are no glaring security holes, I could upload my code again and you wouldn't be able to break it, but I still haven't asked for your opinion on my Back end, so your input is totally unnecessary and unwanted, so it's really weird that you keep saying it.

So thanks for nothing.

Again, if you think my post is against the rules, simply report it to the mods and they will delete it, anything else you say is still completely unnecessary and unwanted.

2

u/zaczone Nov 09 '19

Looks decent. Would be great if you could incorporate chat functionality within a class/subject. Though i suspect that might take some effort if this was your first project.

A few questions : -

What database are you using ? Did you use SQL Alchemy to talk to the db ?

How much time did it take you to code this from start to finish ? Which was the most time consuming part ?

Why didn't you use Django for the same project ?

How many users are supported on this plan of Heroku for an app this size ? (I'm assuming you took the free plan )

0

u/Johnny6_Blaze9 Nov 09 '19 edited Nov 09 '19

A chat between different users? I think that's gonna require some effort and thought, like do I connect people who go to the same university? Or everyone who has the same subject name?

That's indeed a lot of effort and I pretty much have no idea how to do that.

Answers:

I'm using PostgresQL and yes I'm using SQLAlchemy.

I was making an app about book reviews and I think it took me a couple of weeks to finish it cuz I kept adding more features, then I started this project and pretty much copied the features of the book project and kept on adding more features related to the concept of this app, so asking how long it took is a bit tricky, do I count time from the beginning or the book project or this app?

I think the most time consuming part was the UI.

I FUCKING HATE JAVASCRIPT!!!

I didn't use Django because I was taking a CS course called CS50 and they introduced Flask, which is great for a beginner, and I kept using Flask for simple apps and I had to make a final project for the course, I decided to take a look at another course called CS50: Development with Python and JavaScript to learn more and they used introduced Flask then Django after a couple of lectures, at that point I was good enough at Flask so I decided to do my final project with Flask and learn Django later, but I think I took enough Web Development, I'm into Data Science.

There's no user limit because not really a lot of people will be using (even though I hope more people use it cuz it's actually useful) and yes I'm using Heroku's free plan.

Edit: if a lot of people used my app I'm might consider learning Django and recreating the app using it.

1

u/zaczone Nov 10 '19

Once you've got a hang of Flask, you'll grasp Django in a jiffy. While Flask is more light-weight, Django does most of the heavy-lifting for you! I first learned Django and then went to Flask. A lot of things about Django became clearer to me after learning Flask. So you've made a good start.

Are you taking the CS50 online course or you a student at Harvard ? When I set out to learning Django/Flask, amongst other things, I took the entire Web Dev Course at CS50. Brian Yu of CS50 is probably the best teacher out there on the whole of World Wide Web! It's definitely worth every bit of your time if you're a beginner.

1

u/Johnny6_Blaze9 Nov 10 '19 edited Nov 11 '19

I took it online.

Yeah Brian Yu is amazing, but no one beats David. :)

1

u/zaczone Nov 11 '19

David is just loquacious. So verbose! I think he'd be more suited to be a fine arts teacher. He'd make for a good novel writer though.

1

u/Johnny6_Blaze9 Nov 11 '19

That's what I like about him, you don't see a lot of CS professors who are cool and funny like him.

0

u/Johnny6_Blaze9 Nov 10 '19

Why would anyone downvote this? Lol.

1

u/antole97 Nov 09 '19 edited Nov 09 '19

Looks good, just a few quick things i would do. 1. Use JS to fade off the notifications after a few seconds so that they don't persist on the screen. 2. use validation to check that a lectures End Time is after the Start time, e.g the app accepts a start time of 1400 and an end time of 1230 which should not be the case.

1

u/Gasp0de Nov 09 '19

Username: kappapoo Password: 123456aA

1

u/Johnny6_Blaze9 Nov 09 '19

Why are telling us your username and password?

4

u/Gasp0de Nov 09 '19

He wanted to have a user and password so he wouldn't need to register to try your app. I made this one for trying out your app so he might as well use it for the same purpose. I like your app btw :) nice work

Edit: Ok either I replied to the wrong comment or the original commenter edited the comment. He was asking for a username and password to try the app with.

1

u/Johnny6_Blaze9 Nov 09 '19

Oh he edited his comment.

Thanks! <3

1

u/Sw429 Nov 15 '19

Lol I feel like there should be a sub for these kinds of bate 'n' switch comments.

-1

u/Johnny6_Blaze9 Nov 09 '19

I really hate JS so I probably won't do the first thing or ask a friend to do it.

I wanted to check if the end time is after the start time, but left it on purpose because why would a user do something like that, but sure I'll add that check.

1

u/Deutscher_koenig Nov 09 '19

because why would a user do something like that

A few reasons.

They accidentally picked the wrong time for one of them. Simple validation helps catch human error.

Although it seems trivial here, but websites need rules to keep interactions in check and to safe guard future functionality. Suppose that v2 of your app includes email confirmation of your scheduled meeting. What will the email say of the end time is before the start?

You can't trust all users to do the obvious correct actions. We tell people to to use long passwords but they usually use the shortest allowed that a website allows. Imagine if there were no enforced password criteria, most users would have 3 character passwords.

2

u/Johnny6_Blaze9 Nov 09 '19

I left it on purpose because it not a security issue, but you made a good point.

I'll add that check.

1

u/33KGB Nov 09 '19

One thing I would change is that when you go to enter a class you can only select one day. At lease where I go I'll have the same class at the same time on 3 different days.

0

u/Johnny6_Blaze9 Nov 09 '19

I wanted to add this but I wasn't sure how, but since a lot of people requested it then I'll figure it out and add it.

How is your experience after adding your subjects?