Heroku app: go now
- Basic account users can search for meal suggestions by searching the main ingredient, calorie amount, or dietary restrictions.
- Premium account user can search for any type of ingredient, calorie amount, dietary restrictions, cuisine type, and meal type. A bonus option of searching a for meal plan with target total calorie amount per day.
- Filters to results can be applied through calorie per serving and specific diet restrictions.
- go to rapidapi
- go to Spoonacular
- get your X-RapidAPI-Key and X-RapidAPI-Host
- go to Edamam
- get your X-RapidAPI-Key and X-RapidAPI-Host
- Go to ".env" file and change the value as describe Note: If you have a MongoDB we suggest you use your Own MongoDB URI. In case you want to use your own Mongo click here
To run locally:
- install dependencies
npm install
- run server
npm start
or
node server.js
or
npm run dev
- Node.js
- Express
- MongoDB
Please use your own API keys. The APIs used for this project includes:
* home
http://localhost:8888/
* login/sign-up
http://localhost:8888/login_and_signup
--- note you will be automatically redirected to the appropriate endpoints depending on the type of user ---
* dashboard
http://localhost:8888/secure
* admin panel
http://localhost:8888/admin/a
* normal user for admin
http://localhost:8888/admin/normal
* premium user for admin
http://localhost:8888/admin/premium
* logout
http://localhost:8888/user/logout
* depreciated sign-up POST
http://localhost:8888/signup
* depreciated sheets.best POST
http://localhost:8888/admin/a
---
* user login POST
http://localhost:8888/user/gNQu5jGgxPL42r8g5zm6
* create user POST
http://localhost:8888/user/JKp7DeJXgaFtxaJ7FTXb
* premium user api route POST
http://localhost:8888/api/getinfo
* normal user api route POST
http://localhost:8888/api/getinfo_normal
* admin get user info GET
http://localhost:8888/admin/a
* admin update user UPDATE
http://localhost:8888/admin/update
* admin delete user DELETE
http://localhost:8888/admin/delete
* normal and premium dashboard access for admin
http://localhost:8888/admin/normal
http://localhost:8888/admin/premium
- Calorie Tracker
- Homer Li / emo8355
- Don Li / dl90
- Skylar Zhao / SkylarZhao 6
- Cindy Le / cee-elle
- Jaime Deng / jaime-deng
MIT License
Copyright (c) 2020 emo8355, dl90, SkylarZhao6, cee-elle, jaime-deng
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.