Skip to content
Build a simple frontend for the Pizza-Delivery API
JavaScript HTML CSS Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.data
.docker
client
https
lib
model
notes-from-hmwork2-api
public
routes
templates
.dockerignore
.gitignore
1-refactor.md
10-delete-account.md
12-dashboard.md
2-using-templates.md
3-serving-static-assets.md
4-ajax-requests.md
5-create-index.md
6-create-account.md
7-Page-3-Create-Session.md
7-create-session.md
8-delete-session.md
9-edit-account.md
checkout.md
create-an-order.md
docker-compose.yml
edit-cart.md
index.js
readme.md

readme.md

Node.js Master Class Homework Assignment #3

This is the third of several homework assignments you'll receive in this course. In order to receive your certificate of completion (at the end of this course) you must complete all the assignments and receive a passing grade.

How to Turn It In:

  1. Create a public github repo for this assignment.

  2. Create a new thread in the discussion forum and note "Homework Assignment #3" at the top of your post.

  3. In that thread, discuss what you have built, and include the link to your Github repo.

The Assignment (Scenario):

It is time to build a simple frontend for the Pizza-Delivery API you created in Homework Assignment #2. Please create a web app that allows customers to:

  1. Signup on the site

  2. View all the items available to order

  3. Fill up a shopping cart

  4. Place an order (with fake credit card credentials), and receive an email receipt

This is an open-ended assignment. You can take any direction you'd like to go with it, as long as your project includes the requirements. It can include anything else you wish as well.

NOTE:

To start app:

  • cd https

  • run openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem

  • nvm use 8.9//if not Node default

  • node index.js or nodemon index.js

Create images & start with Docker:

  • ` docker-compose up

  • http://localhost:7777/

  • Set environment variables for Mailgun and Stripe

    • see ./notes-from-hmwork2-api/security.md

    • Test send email via Mailgun:

    curl -s --user 'api:YOUR_API_KEY' \ https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages \ -F from='Excited User <mailgun@YOUR_DOMAIN_NAME>' \ -F to=YOU@YOUR_DOMAIN_NAME \ -F to=bar@example.com \ -F subject='Hello' \ -F text='Testing some Mailgun awesomeness!'//not working...unable to log in

You can’t perform that action at this time.