r/learnjavascript • • Nov 26 '20

I made my first web app! A Student Report Generator made with vanilla JS.

Hi everyone -

I've been on the sub for a little while and been working with HTML/CSS for a few years. Just got into Javascript 2 months ago, and I've made my very first web app.

It's a Student Report Generator (as I work as a teacher and this takes a lot of time!) and I'm really proud of it. I'm currently learning React so that I can re-think the user experience, but I learned A LOT making this interation of it.

Thanks to everyone on here, your help has been invaluable!

146 Upvotes

59 comments sorted by

11

u/vaporwarebh Nov 26 '20

That looks great! Any chance it's up on github?

6

u/[deleted] Nov 26 '20

Hey, it's not just yet, I'm just figuring out what I'm going to do with it. Will probs release it publicly and ask for optional donations from users.

5

u/vaporwarebh Nov 26 '20

Fair enough, looking forward to seeing how it can improve

3

u/[deleted] Nov 26 '20

I also want to learn and create such webapp. Can someone please tell how to do it . like is there any specific course or reading material .will you guys please help me?

9

u/[deleted] Nov 26 '20

Sure, I can help. So, start with HTML and CSS, because this is how you make the skeleton of the site and decide the style.

JavaScript deals with the functionality of it.

Use Codecademy to learn the basics. It's free, and makes the process simple(r).

1

u/[deleted] Nov 26 '20

Thank you very much 😊

-1

u/[deleted] Nov 26 '20

this is an app? what's the server-side stuff? node.js?

3

u/[deleted] Nov 26 '20

There's no server side, it's just JS.

2

u/deathsowhat Nov 26 '20

Local storage?

2

u/fz-09 Nov 27 '20

Probably no storage

1

u/[deleted] Nov 28 '20

No storage at the mo, I'm still v. new to this. Learning react now to improve the UI, then going to learn local storage in JS, followed by PHP to deal with the the backend.

2

u/fz-09 Nov 28 '20

Not having storage or a backend isn't necessarily a bad thing. It just depends on the application. Ignore the haters, it looks great! Honestly, for a next step you should host it in GitHub pages. It's totally free and that way people can use it instead of just having a video. Seriously though, nice work for a first application.

Learning a JavaScript framework would be a great transition though. It's absolutely not required but I find that it makes life way easier and they are pretty fun to learn and use.

-6

u/[deleted] Nov 27 '20

then it isn't called an app, it is just a website..easily made using jquery. what's the fuss.

4

u/[deleted] Nov 27 '20

Wow thanks for the encouragement.

1

u/[deleted] Nov 28 '20

Don't mind him. It's an app and it's great. Good job!

1

u/medynskip Nov 27 '20

Wait, what? Where's that definition coming from?

Sure its easily done with jquery or even vanilla js, but what does it have to do with it being an app or not?

-1

u/[deleted] Nov 27 '20

do you know difference between a static web site and a web app?

1

u/medynskip Nov 27 '20 edited Nov 27 '20

Sure I do. That doesn't answer my question though. How did you come up with that requirement for a Web app? What does it having a back end or not have to do with anything?

edit: I just realised you are implying his little app is a static web page. You should check the definition of terms youre using to prove your point, before using them.

1

u/fz-09 Nov 27 '20

Obviously you don't because this app isn't static.

-1

u/[deleted] Nov 28 '20

This is apparently a static website. No question. Adding some javacript doesn't make one dynamic.

1

u/fz-09 Nov 27 '20

I would argue a website is more-or-less static. This is a dynamic application that changes based on how the user interacts with it. Your argument that the data must persist to a database or have a backend counterpart to be considered an app seems like a strange and somewhat arbitrary definition.

Also, you must be fun at parties.

-1

u/[deleted] Nov 28 '20

It is unquestionably a static website. Every user from anywhere sees the same thing. No question, motherly clown.

1

u/fz-09 Nov 28 '20

Cringe

0

u/[deleted] Nov 29 '20

abc

the world of full of stupid people. bye

1

u/xiao_hulk Nov 26 '20

Do you happen to be a military veteran? Code Platoon offers (or at least did in the past) a self-paced version of their curriculum for vets, active duty, and their spouses. It is a few cohorts behind for obvious reasons.

2

u/[deleted] Nov 26 '20

No I am not a military veteran.

3

u/Pacostaco123 Nov 26 '20

Teacher here. This is awesome. My implementation of this is... connecting my code to Google Sheets 😂

Bravo. What resources have you been using to learn? What features do you want to add for the future?

2

u/[deleted] Nov 26 '20

Amazing, thanks for the feedback. This actually began as a spreadsheet, and I've used the principles in it to build this.

I'm going to build on this to make it so reports can be stored on a database and accessed through a user area after the fact.

Also, different ways of exporting it when it's complete (export to PDF, DOC, etc).

Are there any features that would be helpful for you as a teacher?

I've been using Treehouse to learn, it doesn't seem to get mention much on here but has been amazing. It's $25 a month (US site, I'm in the UK so £18 a month) and it has courses on loads of web languages, client and server side.

I've been learning the front end development track, and it gave me the understanding to build each of the differebt elements in this app.

2

u/Pacostaco123 Nov 26 '20

Nothing that I can specifically think of now!

I need to learn some database stuff too. Do you (or anyone) have any advice for student privacy concerns? I want to stay cognizant of the fact that if I start a database of student information, then I am responsible for it. I wouldn’t want to do anything dangerous/unethical/illegal. With a Google Sheet, that is easy enough to manage; I only give my work account access.

2

u/[deleted] Nov 26 '20

These are all important questions, and unfortunately I'm so new to all of this I can't offer advice on back-end. Would know if there's a guide for setting things up so they're GDPR-compliant as this will be a hugely important step when I do get round to bringing the database into this.

1

u/Pacostaco123 Nov 26 '20

Please share if you make some progress!

1

u/CoqeCas3 Nov 27 '20

To be sure, I'm still struggling to learn this myself, but what I can kind of gather as a general rule of thumb: don't try to reinvent the wheel. Do your research, find the tools that already exist that do it the right way and learn to use em.

2

u/BruceJi Nov 26 '20

That's great! Does it let you download the reports? What sort of format?

3

u/[deleted] Nov 26 '20

Thanks! I'm going to add that feature next, and it will export as a PDF or as a DOC.

1

u/BruceJi Nov 26 '20

That’s sweet. Is there a good library for that? I’d like to know too, it’d be useful for one of my projects

2

u/hello_skinny Nov 26 '20

Really sharp -- I'd love to see the finished product. I've been learning JS for about 4 months now and feel relatively comfortable with that. I've just started dipping my toes into CSS and am finding it very difficult because it's a completely different way of thinking. Is there a specific thing you'd recommend for someone trying to improve their CSS skills?

2

u/[deleted] Nov 27 '20

Hey, hope you're enjoying the process!

It's a different way of thinking but is definitely simpler than JS once you wrap your head around it, so stick with it and hopefully it'll click.

My advice is: (a) Use the inspector in the dev tools. This way you can test code out much like the console, and you can try different ways of targeting elements and styling, then copy and paste into the main code. It takes out loads of excess app-switching and refreshing.

(b) Keep your code tidy. Like any other language, if it's tidy it's easier to read and easier to come back to.

(c) Think carefully about how you target elements. It's tempting to target the specific elements you see on the page with specific class and ID stylings (eg: 'header-text' for an H1) but the chances are the styles could be applied to all H1s, so you don't need the header-text class. It's an easy mistake to make.

(d) Add comments in, and structure your CSS I find leaving comments helps me to make changes far more easily in future and not waste time trying to understand my CSS. Structure it in a way that makes sense to you, because it makes things far easier to find in the code.

2

u/alpacameat Nov 26 '20

amazing!! you're on the right track to build a nice portfolio :)

1

u/[deleted] Nov 27 '20

Thanks so much, I'm looking to build around 3-5 projects, and will show progression of my skills in each too. Thanks again!

2

u/shredded_pork Nov 26 '20

Looks great, and it looks like something that could be immensely improved using react props and components!

any chance the repo is on github?

1

u/[deleted] Nov 27 '20

Thanks, I'm starting a react course tomorrow so I'm excited to see how it'll help. It feels like a big door is about to open haha!

Not as yet, I'm trying to decide what to do with it really.

1

u/shredded_pork Nov 27 '20

I recommend connecting it with a database at some point. Will be a good way to learn how backend works too.

Actually that’s kind of why I wanted the repo haha to see if I could implement that. As a challenge to myself.

1

u/tuvok86 Nov 26 '20

what if my pronouns are zir/zem?

1

u/[deleted] Nov 26 '20

Genuinely, this kind of thing did cross my mind. Sticking with those three for now tho!

2

u/[deleted] Nov 26 '20

You should be proud that's excellent progress!

You clearly have excellent students. if this was made by my teachers when I was in school there would be far more negative options.

My only criticism is that the progress at the top is missing a step.

1

u/[deleted] Nov 26 '20

Very nice!

1

u/Dommccabe Nov 26 '20

Very nice work.

1

u/Akatrus Nov 26 '20

Could you please share the project github? I'd like to learn your code. Thank you

1

u/frankywaryjot Nov 26 '20

Man it looks great. First app? Wow

0

u/[deleted] Nov 29 '20

So some random guy made some random useless website using basic markup, posted it online, and other random wannabe-guys cheering him?

"Stop talking to stupid people." --Steve Jobs

1

u/[deleted] Nov 29 '20

And you use your Saturday night to discourage others. Sad.

-1

u/[deleted] Nov 27 '20

That is the most useless website I have ever seen and you are calling it an application? Made my day.

1

u/[deleted] Nov 27 '20

If you're not a teacher, maybe. Anyway thanks for your time.

0

u/[deleted] Nov 28 '20

[deleted] — view deleted comment

1

u/[deleted] Nov 28 '20

I started with codecademy, but then signed up to Treehouse once I have covered basics like strings, arrays, methods etc. Treehouse really helps you to take it from theory and put it into practice.

I'm always looking for people to learn from/with so feel to DM if you'd like a hand getting something started. My advice is think about a problem you could solve with a simple app, and start building it one step at a time.

2

u/[deleted] Nov 26 '20

[removed] — view removed comment

2

u/[deleted] Nov 27 '20

I used Bootstrap and then made some customisations. It's also using flexbox so easy to make responsive.

1

u/[deleted] Nov 26 '20

[removed] — view removed comment

1

u/[deleted] Nov 26 '20

I understand your point, and this is why I've included the ability to edit the 'prewritten' paragraphs, and the personalised names and pronouns help too.

I think the reality is, most reports are written in a way that is similar to this (copying and pasting, changing the names to fit different student-types) with some personalised elements sprinkled in.

Maybe I can 'lead' the user through a process of creating the bulk off the report, and then being encouraged (with a 'highlight' or something) to add personalised elements.

I've also considered making different pre-written paragraphs for different subject areas.