Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/node_modules
/static/bundle.js
/static/bundle.map.js
/server/static/bundle.js
/server/static/bundle.js.map
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ A few notes before we get started

**Menu**
* Design a menu for a restaurant such as food items, prices etc. By providing each item with an id we can refer to it later. The first item has already been created for you. Feel free to amend it.
* Create an API endpoint that returns a menu of items with prices available to order
* Create an API endpoint at `/api/menu` that returns a menu of items with prices available to order
* Create a page that displays the menu to the user using the API

**Order**

* Update the menu page to make it an order page
* It should allow the user to specify quantities of items to order
* It should add a delivery charge and display the total order cost
* Create an API to receive and save the submitted order
* Create an API endpoint at `/api/orders` receive and save the submitted order

**Closures**

Expand Down Expand Up @@ -57,9 +57,9 @@ A few notes before we get started
## Technical notes

* Run `npm install` after cloning to download all dependencies
* Use `npm run dev -- --watch` to build React
* Use `node index.js` to run the Node server in another tab
* Place all static files such as images and CSS in the `static` folder. When requesting those files from the server use `/static` at the beginning of the URL. For example `<link rel="stylesheet" type="text/css" href="/static/styles.css">`
* Use `npm run dev` to build React
* Use `npm run server` to run the Node server in another terminal tab
* Place all static files such as images and CSS in the `static` folder. When requesting those files from the server use `/static` at the beginning of the URL. For example `<link rel="stylesheet" href="/static/styles.css">`
* `bundle.js` produced by webpack will be output in the `static` folder
* To send data server using a POST, PUT or PATCH request you can do something the example below, where `order` is an object we want to send to the server and `http://localhost:8080/api/order` is URL we want to send it to.

Expand All @@ -77,7 +77,7 @@ fetch('http://localhost:8080/api/order', {
});
```

* Check out [Nodemon](https://nodemon.io/) to automatically rebuild and restart your server when changes are saved.
* Look at `package.json` to see how [Nodemon](https://nodemon.io/) is being used to automatically rebuild and restart your server when changes are saved.

## README

Expand Down
13 changes: 13 additions & 0 deletions client/components/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react";

class App extends React.Component {
constructor() {
super();
}

render() {
return <h1>DeliverEat app</h1>;
}
}

export default App;
File renamed without changes.
23 changes: 0 additions & 23 deletions index.js

This file was deleted.

Loading