Live data from Hacker News

Make This in an Hour

makethisinanhour.com

91–100 of 103 posts

Re: Make This in an Hour

#91
post #62
post #40

err, or you could just upload index.html to any shared hosting in 5 minutes? The trouble of making a site (at least for people who can edit html directly, as in this example) is not about how to do it, but about high expectations and standards that we impose on ourselves... I'm guilty of this mysqlf, my site hasn't been updated in like 5 years, and I've built dozens of sites for others in that period...

> I'm guilty of this mysqlf A typo only someone from this community would make.

Haha that's awesome, I do the same thing. Though I just wind up typing "mysql" instead of "myself" or "mysqlf". I type the word "mysql" much more frequently than "myself" that the muscle memory takes over on the keyboard. Glad to see I'm not alone. :D

Re: Make This in an Hour

#92
post #88

Student here. Why do you run a localhost web server before pushing to git? Is this a git thing? (I am a newbie to github). Thanks. I like this nice short article.

It's not necessary for git, no. However, it's a really good habit to get in—you make some changes to the project and then test it locally before pushing your changes to your git repo (on github and/or elsewhere). This way, you make sure your changes didn't break something that was previously working. Now as to why start the simple http server to check your work vs. opening the index.html file directly in the browser:…

3) AJAX won't work (since there's no HTTP backend to talk to)

Re: Make This in an Hour

#93
post #40

err, or you could just upload index.html to any shared hosting in 5 minutes? The trouble of making a site (at least for people who can edit html directly, as in this example) is not about how to do it, but about high expectations and standards that we impose on ourselves... I'm guilty of this mysqlf, my site hasn't been updated in like 5 years, and I've built dozens of sites for others in that period...

The OP's one-hour recipe is strictly better for a pure static site, because it's substantially cheaper than shared hosting (which is $5/mo, github pages is free). Note that shared hosting provides persistent compute/store capability, which this project doesn't need.

If you're making a purely static site, you could save yourself ~40 minutes of that by using http://neocities.org instead of github. You don't have to bother installing git, creating files locally, intializing a repo, committing changes, signing up for github, or pushing code if you don't want to. Of course, using version control is a good practice, but neocities will host your static pages, scripts, stylesheets, and other assets for free, and there's an in-browser code editor. You still have to register your domain name and change your DNS record to point to neocities, but if your goal is to get a page up and running as fast as possible, that's the way to do it.

Also, don't github pages need to be deployed to the gh-pages branch?

Re: Make This in an Hour

#94
post #66

Earlier quoted context omitted.

You can make a github page for each project, but it walks me through a process that forces me to use their template and my own markdown, not able to actually upload html/css etc. I suppose I could create another github account though, but not sure if I want to do that every one-off site I want to put up.

You can definitely create github pages for each repo, using your own html/css/js. You just need to create a gh-pages branch [1]. If you just want to host a new static site, you can even create a new repo just for that, create a gh-pages branch, then make it the default branch and delete the master branch, leaving you with only the gh-pages content [2]. [1] https://help.github.com/articles/creating-project-pages-manu.…

This is great, I will look in to this. Thanks!

Re: Make This in an Hour

#95
post #88

Earlier quoted context omitted.

It's not necessary for git, no. However, it's a really good habit to get in—you make some changes to the project and then test it locally before pushing your changes to your git repo (on github and/or elsewhere). This way, you make sure your changes didn't break something that was previously working. Now as to why start the simple http server to check your work vs. opening the index.html file directly in the browser:…

3) AJAX won't work (since there's no HTTP backend to talk to)

I knew I was forgetting something.

Re: Make This in an Hour

#96
post #88

Earlier quoted context omitted.

It's not necessary for git, no. However, it's a really good habit to get in—you make some changes to the project and then test it locally before pushing your changes to your git repo (on github and/or elsewhere). This way, you make sure your changes didn't break something that was previously working. Now as to why start the simple http server to check your work vs. opening the index.html file directly in the browser:…

3) AJAX won't work (since there's no HTTP backend to talk to)

Not _entirely_ true. AJAX will work, it just cannot access the 'file:' protocol by default. Requesting HTTP content will work fine.

Re: Make This in an Hour

#98

This gave me a great idea. There should be a website with a bunch of programming challenges (e.g like making a Todo list app or write a data structure in an hour) where you can share your code and workflow. You could then view a bunch of other peoples workflows, code, and post mortem notes and discuss how to improve each others workflows. Anybody know of a site like this?

Exercism.io

Re: Make This in an Hour

#99
Pretty awesome... thanks. I have been putting off figuring out how to make sites on github. Since I didn't need the domain, I had a site in about 8 minutes, and now know how to create project pages as well.

Re: Make This in an Hour

#100

I'm using github pages to host a website of mine, and I need another. Can anyone recommend a cheap/reliable simple html/css/js website host? No need for wordpress installation, Rails, etc.

Netlify is awesome. Can even run a build process (similar to github pages) but using just about any static site generator. [1] https://www.netlify.com

Thanks so much for the shout out, we appreciate it, and are happy that you like it. And for you and any one reading this, let us know if there are any features you'd like and we'll get right on it.
Post reply on HN