Backend development with Express
  • Welcome!
  • Intro to backend development with Express
    • Tutorial
      • Getting started
      • Step 1: Setting up your project
      • Step 2: Installing Express
      • Step 3: Building the server
      • Step 4: Communicating with the server
      • Step 5: Routing
      • Step 6: Serving static files
      • Step 7: Sending your blog post to your server
      • Step 8: Extracting the blog post
      • Step 9: Saving your blog post
      • Step 10: Displaying your blog posts
      • Congratulations!
    • Extras
      • More ideas
      • Individual Blog Posts
    • Keywords
    • Command-line cheatsheet
Powered by GitBook
On this page
  1. Intro to backend development with Express
  2. Extras

More ideas

Some ideas if you finish the tutorial and want to keep going!

PreviousExtrasNextIndividual Blog Posts

Last updated 6 years ago

If you finish early, or want to keep working on this as a side project after the workshop, here's some ideas on how to upgrade your creation.

It would be a great idea to create a new branch on Git for yourself, so you can experiment and not have to worry about ruining your previous code.

Display individual posts with URL parameters and templating

Try some more of express's features by adding a page for individual blog posts using express's URL parameters and templating stuff. .

Display the date

Edit script.js so that the timestamps for the previous blog posts are displayed in a human-readable way.

Use a database

Instead of writing to a file on your hard drive, you could save your blog posts in a database, which would be much quicker in terms of performance if there was a lot of data.

A really simple, quick-to-setup database is Firebase, by Google. Go to their website and check out their Web Get Started guide.

Host your blog online!

Heroku is a what we call a Platform as a Service. You upload your code to them and it will live on one of their servers, meaning you can access it on the general internet from anywhere!

Heroku is good because they have a lot of free options for small-scale apps, like yours.

Extra reading

There's great resources out there for continuing your Node.js journey. Here they are:

have really great interactive tutorials for all sorts of Node technologies.

Tutorial here :)
Javascript date functions
here
Heroku
NodeSchool
Error Handling