> Field of Greens
## How To Start This App
************************************
Application instructions:
package.json in root folder contains some scripts for you to use in terminal. Run these commands in shell.
“npm run wp” runs webpack with –watch to automatically transpile on updates.
“npm run start” will start the server to accept incoming clients and also allow you to monitor the server in terminal.
The server is set to run on port 5000 locally: localhost:5000
************************************ Future Goals:
Social Media features -> Share with friends, upload local grossery discoveries Add user authentication Complete API integration to openFDA recall list Scrub data from said API integration
************************************
RESTful API Endpoints:
| METHOD | URL | REQ | RES |
|---|---|---|---|
| GET | / | html | |
| POST | /login | ||
| POST | /signup | ||
| GET | /api/users/%username/lists/%id | list | {name: ”, items: []} |
| POST | /api/users/%username/lists | {name: ”, items: []} | {name: ”, items: []} |
| GET | /api/users/%username/lists | array | |
| GET | /api/search | {name: ‘string’} | array |
| GET | /api/users/%username/allergies | array | |
| GET | /api/users/%username/likes | array | |
| GET | /api/users/%username/dislikes | array | |
| POST | /api/users/%username/allergies | {item: ”} | array |
| POST | /api/users/%username/likes | {item: ”} | array |
| POST | /api/users/%username/dislikes | {item: ”} | array |
| POST | /api/users/%username/delete | {name: ”, type:”} | array |
************************************
- Auth/
- Auth.js
- Auth0-settings.js
- history.js
- bootstrap/
- css/
- fonts/
- js/
- config.json
- client/
- src/
- components /
- app.jsx
- currentItems.jsx
- itemEntry.jsx
- iteminput.jsx
- listManager.jsx
- loadSavedLists.jsx
- login.jsx
- navigation.jsx
- recallList.jsx
- recalls.jsx
- saveList.jsx
- stateDropdown.jsx
- components /
- src/
- db/
- index.js
- schemas.jsx
- data.js
- dist/
- bundle.js
- node_modules/
- server/
- index.js
- .babelrc
- .env
- .eslintrc
- .gitignore
- index.html
- package-lock.json
- package.json
- README.org
- webpack.config.js