├── .env ├── .gitignore ├── MERN Infrastructure Project.drawio.png ├── Procfile ├── README.md ├── Screenshot.png ├── config ├── checkToken.js ├── database.js ├── ensureLoggedIn.js └── seed.js ├── controllers └── api │ ├── items.js │ ├── orders.js │ └── users.js ├── crud-helper.js ├── models ├── category.js ├── item.js ├── itemSchema.js ├── order.js ├── readme.md └── user.js ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── routes └── api │ ├── items.js │ ├── orders.js │ └── users.js ├── server.js └── src ├── App.test.js ├── components ├── CategoryList │ ├── CategoryList.js │ └── CategoryList.module.css ├── LineItem │ ├── LineItem.js │ └── LineItem.module.css ├── LoginForm │ ├── LoginForm.js │ └── LoginForm.module.css ├── Logo │ ├── Logo.js │ └── Logo.module.css ├── MenuList │ ├── MenuList.js │ └── MenuList.module.css ├── MenuListItem │ ├── MenuListItem.js │ └── MenuListItem.module.css ├── NavBar.js ├── OrderDetail │ ├── OrderDetail.js │ └── OrderDetail.module.css ├── OrderList │ ├── OrderList.js │ └── OrderList.module.css ├── OrderListItem │ ├── OrderListItem.js │ └── OrderListItem.module.css ├── SignUpForm │ ├── SignUpForm.js │ └── SignUpForm.module.css └── UserLogOut │ ├── UserLogOut.js │ └── UserLogOut.module.css ├── index.css ├── index.js ├── logo.svg ├── pages ├── App │ ├── App.css │ ├── App.js │ └── App.module.css ├── AuthPage │ ├── AuthPage.js │ └── AuthPage.module.css ├── NewOrderPage │ ├── NewOrderPage.js │ └── NewOrderPage.module.css └── OrderHistoryPage │ ├── OrderHistoryPage.js │ └── OrderHistoryPage.module.css ├── reportWebVitals.js ├── setupTests.js └── utilities ├── items-api.js ├── order-api.js ├── send-request.js ├── users-api.js └── users-service.js /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/.gitignore -------------------------------------------------------------------------------- /MERN Infrastructure Project.drawio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/MERN Infrastructure Project.drawio.png -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: node server.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/README.md -------------------------------------------------------------------------------- /Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/Screenshot.png -------------------------------------------------------------------------------- /config/checkToken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/config/checkToken.js -------------------------------------------------------------------------------- /config/database.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/config/database.js -------------------------------------------------------------------------------- /config/ensureLoggedIn.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/config/ensureLoggedIn.js -------------------------------------------------------------------------------- /config/seed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/config/seed.js -------------------------------------------------------------------------------- /controllers/api/items.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/controllers/api/items.js -------------------------------------------------------------------------------- /controllers/api/orders.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/controllers/api/orders.js -------------------------------------------------------------------------------- /controllers/api/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/controllers/api/users.js -------------------------------------------------------------------------------- /crud-helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/crud-helper.js -------------------------------------------------------------------------------- /models/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/models/category.js -------------------------------------------------------------------------------- /models/item.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/models/item.js -------------------------------------------------------------------------------- /models/itemSchema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/models/itemSchema.js -------------------------------------------------------------------------------- /models/order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/models/order.js -------------------------------------------------------------------------------- /models/readme.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/models/user.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/public/index.html -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/public/manifest.json -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/public/robots.txt -------------------------------------------------------------------------------- /routes/api/items.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/routes/api/items.js -------------------------------------------------------------------------------- /routes/api/orders.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/routes/api/orders.js -------------------------------------------------------------------------------- /routes/api/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/routes/api/users.js -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/server.js -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/App.test.js -------------------------------------------------------------------------------- /src/components/CategoryList/CategoryList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/CategoryList/CategoryList.js -------------------------------------------------------------------------------- /src/components/CategoryList/CategoryList.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/CategoryList/CategoryList.module.css -------------------------------------------------------------------------------- /src/components/LineItem/LineItem.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/LineItem/LineItem.js -------------------------------------------------------------------------------- /src/components/LineItem/LineItem.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/LineItem/LineItem.module.css -------------------------------------------------------------------------------- /src/components/LoginForm/LoginForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/LoginForm/LoginForm.js -------------------------------------------------------------------------------- /src/components/LoginForm/LoginForm.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/LoginForm/LoginForm.module.css -------------------------------------------------------------------------------- /src/components/Logo/Logo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/Logo/Logo.js -------------------------------------------------------------------------------- /src/components/Logo/Logo.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/Logo/Logo.module.css -------------------------------------------------------------------------------- /src/components/MenuList/MenuList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/MenuList/MenuList.js -------------------------------------------------------------------------------- /src/components/MenuList/MenuList.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/MenuList/MenuList.module.css -------------------------------------------------------------------------------- /src/components/MenuListItem/MenuListItem.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/MenuListItem/MenuListItem.js -------------------------------------------------------------------------------- /src/components/MenuListItem/MenuListItem.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/MenuListItem/MenuListItem.module.css -------------------------------------------------------------------------------- /src/components/NavBar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/NavBar.js -------------------------------------------------------------------------------- /src/components/OrderDetail/OrderDetail.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/OrderDetail/OrderDetail.js -------------------------------------------------------------------------------- /src/components/OrderDetail/OrderDetail.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/OrderDetail/OrderDetail.module.css -------------------------------------------------------------------------------- /src/components/OrderList/OrderList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/OrderList/OrderList.js -------------------------------------------------------------------------------- /src/components/OrderList/OrderList.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/OrderList/OrderList.module.css -------------------------------------------------------------------------------- /src/components/OrderListItem/OrderListItem.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/OrderListItem/OrderListItem.js -------------------------------------------------------------------------------- /src/components/OrderListItem/OrderListItem.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/OrderListItem/OrderListItem.module.css -------------------------------------------------------------------------------- /src/components/SignUpForm/SignUpForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/SignUpForm/SignUpForm.js -------------------------------------------------------------------------------- /src/components/SignUpForm/SignUpForm.module.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/UserLogOut/UserLogOut.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/UserLogOut/UserLogOut.js -------------------------------------------------------------------------------- /src/components/UserLogOut/UserLogOut.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/components/UserLogOut/UserLogOut.module.css -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/index.js -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/logo.svg -------------------------------------------------------------------------------- /src/pages/App/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/App/App.css -------------------------------------------------------------------------------- /src/pages/App/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/App/App.js -------------------------------------------------------------------------------- /src/pages/App/App.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/App/App.module.css -------------------------------------------------------------------------------- /src/pages/AuthPage/AuthPage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/AuthPage/AuthPage.js -------------------------------------------------------------------------------- /src/pages/AuthPage/AuthPage.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/AuthPage/AuthPage.module.css -------------------------------------------------------------------------------- /src/pages/NewOrderPage/NewOrderPage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/NewOrderPage/NewOrderPage.js -------------------------------------------------------------------------------- /src/pages/NewOrderPage/NewOrderPage.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/NewOrderPage/NewOrderPage.module.css -------------------------------------------------------------------------------- /src/pages/OrderHistoryPage/OrderHistoryPage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/OrderHistoryPage/OrderHistoryPage.js -------------------------------------------------------------------------------- /src/pages/OrderHistoryPage/OrderHistoryPage.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/pages/OrderHistoryPage/OrderHistoryPage.module.css -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/reportWebVitals.js -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/setupTests.js -------------------------------------------------------------------------------- /src/utilities/items-api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/utilities/items-api.js -------------------------------------------------------------------------------- /src/utilities/order-api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/utilities/order-api.js -------------------------------------------------------------------------------- /src/utilities/send-request.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/utilities/send-request.js -------------------------------------------------------------------------------- /src/utilities/users-api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/utilities/users-api.js -------------------------------------------------------------------------------- /src/utilities/users-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryFontana/Cafe-template/HEAD/src/utilities/users-service.js --------------------------------------------------------------------------------