r/learnwebdev • u/[deleted] • Aug 05 '17
How do you plan a website?
I just started learning web development on Monday, and yesterday I saw how far I could get in 8 hours. The result was okay, looking back I felt I could have done better if I had a plan of what I was going to do, step-by-step. It looks pretty basic, but I'm not ashamed, I know I'm still learning.
I guess the best thing I got from this was that I have new questions.
How do you plan websites? Do you use pen and paper, or do you just write out what it will have, or do you plan it at all?
Should I build the website piece by piece, or should I build it with "layers" -- meaning getting an element to a rough draft, moving on until everything is a rough draft, and then repeating.
Should I build websites like a watch, or a house?
3
Aug 06 '17
It depends on what you're using though it never hurts to start and sketch it out on paper first a lot of tech start ups do that. Also if you're doing front-end use codepen.io to help you with the html,css and javascript.
1
u/HuWeiliu Aug 23 '17
Planning it out on pen and paper is fine (and good!). What you need to plan and how extensively depends on the scope of the project. Planning is always good, but don't let planning get in the way of doing. Often you won't know what problems there are to solve until you try.
In terms of how to structure your development. I find working in columns rather than layers is more useful. Build the website feature by feature - maybe not until it's perfect, but at least functional. It can be pretty painful to come back to features you were working on a while ago. So get a feature as done as reasonable, and then move onto the next. This way is also a bit more rewarding, as you can set yourself mini goals and see them come to fruition.
4
u/noodle-cats Aug 16 '17
I would advise this common workflow (assuming you are building a simple website without a backend):
Get your content! What information you want to add to the site will shape how it looks. You should never come up with filler data to match your design. Content comes first then based on what info you have to display you can start planning how to showcase it.
Create a general sketch/wireframe based on the data you have to display as content. Do you have images? Do you have enough info to warrant multiple pages? What are your Calls to Action that you want a user to see and take on each page. 1 Call to Action (aka a button, this can be a subscribe now, explore more etc) per page. Each page should lead a user to want to do the action the page is intended for, for example if it is a personal website perhaps you want the user by the end of reading a page to contact you to ask for your CV.
I like to work with components, so once you have your sketch you can identify which bits of the page occur in multiple places and can be it's own component that you can basically reuse throughout. For example: a button, a numbered list, a 100% width image, a hero (image with some text and CTA on top of it) and so on.
Start working on your styles, you will need to use normalize.css https://necolas.github.io/normalize.css/ to help all your styles be consistent across browsers. Then come up with a project folder structure for your css styles that reflect your components you have identified. Use Sass or similar if you can to allow you to have partial files and lots of other cool stuff that is super useful to not constantly repeat yourself and copy paste styles. http://slides.com/lilianakastilio/sass#/ http://slides.com/lilianakastilio/introduction-to-oocss-and-bem-6#/
Identify if any of your site needs any interactions or needs to use JavaScript.
Add a build step if you want to deploy the website >> minify all your code to make sure your site code is as small as possible so it loads faster.
Optimise images if you want to host the site.https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/image-optimization
Where will you host it? Identify your best solution.
There is a lot more that you can add and do depending on how this site will be used, is it a real live site with many users? Do you need tests? Do you need to use a CDN?
You can skip many steps above if you are just starting out and just play with some of the things I mentioned.
If you want to try making a small guided website, I have made a free course that teaches you how to make a simple website from scratch and deploy it for free: http://cubcats.teachable.com/p/create-a-simple-website-in-css-html-and-deploy-to-amazon-s3
Hope this helps!