The intent of this project is to take you step-by-step through the process of building an Express app, documenting the changes as bite-sized chunks that you'll ideally be able to pick up and iterate upon rapidly.
- All steps:
- Step Seven:
- Optional:
- Azure account (free tier works just fine 💖)
- Initalize the repo with the universal documents that we should have in every project
Read more in the Step Zero README.md
- Set up a very basic HTTP server + add the dependencies
To run the Step One code:
# make sure your current working directory is the main directory of this repo
cd step-one
node app.jsRead more in the Step One README.md
- Set up a very basic HTTP server + add the dependencies
To run the Step Two code:
# make sure your current working directory is the main directory of this repo
cd step-two
node app.jsRead more in the Step Two README.md
- Start parsing the querystring passed to the web app and – if the querystring
idis present – passing that value to the API we're hitting, via therequestmodule.
To run the Step Three code:
# make sure your current working directory is the main directory of this repo
cd step-three
node app.jsRead more in the Step Three README.md
- Add view rendering with
handlebars(viaexpress-handlebars) - Create our first view
- Start rendering comics with handlebars on the
/comicpath
To run the Step Four code:
# make sure your current working directory is the main directory of this repo
cd step-four
node app.jsRead more in the Step Four README.md
- Call Express's
staticmethod to serve CSS - Create the
/staticdirectory + add our CSS file to it
To run the Step Five code:
# make sure your current working directory is the main directory of this repo
cd step-five
node app.jsRead more in the Step Five README.md
- Add Added error handling
- Add port detection (
process.env.PORT) that allows us to ship it to Auzre - Add
favicon.icoto make browsers happy
To run the Step Six code:
# make sure your current working directory is the main directory of this repo
cd step-six
node app.jsRead more in the Step Six README.md
- Dockerized
- Add
Dockerfile - Add
.dockerignore
- Add
- Add
hostvariable to detect ifHOSTenvironment variable is defined, defaulting to0.0.0.0if not.- Express now listens to the
hostas its host
- Express now listens to the
- Add
startnpm script, which can be called withnpm start
To run the Step Seven code:
# make sure your current working directory is the main directory of this repo
cd step-seven
node app.jsRead more in the Step Seven README.md