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.
- 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.js
Read 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.js
Read more in the Step Two README.md
- Start parsing the querystring passed to the web app and – if the querystring
id
is present – passing that value to the API we're hitting, via therequest
module.
To run the Step Three code:
# make sure your current working directory is the main directory of this repo
cd step-three
node app.js
Read 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
/comic
path
To run the Step Four code:
# make sure your current working directory is the main directory of this repo
cd step-four
node app.js
Read more in the Step Four README.md
- Call Express's
static
method to serve CSS - Create the
/static
directory + 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.js
Read 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.ico
to 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.js
Read more in the Step Six README.md
- Dockerized
- Add
Dockerfile
- Add
.dockerignore
- Add
- Add
host
variable to detect ifHOST
environment variable is defined, defaulting to0.0.0.0
if not.- Express now listens to the
host
as its host
- Express now listens to the
- Add
start
npm 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.js
Read more in the Step Seven README.md