Nutrition app built by Trilogy bootcamp alumni to let a user find their caloric needs (using a calculator) and set a calorie goal. A user can search for specific food nutrition and recipes. Recipes will show ingredients and steps to make a meal, show the nutrition details of the recipe and save the recipe, and log the recipe as a meal. A user can add meals for the day to show the total amount of calories consumed and view any past meals they have logged.
To get a local copy up and running follow these simple steps.
-
Clone the repo in your terminal
git clone git@github.com:newtritious/Newtritious.git
-
After installation and in the same terminal, type
cd Newtritious
and hit enter before proceeding onto the next step -
Run the following command to install necessary dependencies:
yarn install
- Note: If you are using npm, delete all
node_modules
folders in the root of the project folder and client folder - then reinstall packages with yarn
Signup for your own Spoonacular API key @ https://spoonacular.com/food-api
.
- Click the
Start Now
button in the navigation - From the
Dashboard
- Navigate toProfile
- You will see your API key hidden
API Key: *****************************
- Click the
Show / Hide API Key
button - Create a local
.env
file in the root directory (i.e., the same directory where theCODE_OF_CONDUCT.md
lives) - In the
.env.EXAMPLE
file, you will see an example on how your Spoonacular API key should look in your.env
file.SPOONACULAR_API_KEY=your_api_key
In the .env.EXAMPLE
file, you will notice a key/value that looks like this:
SECRET_STRING=Super_Secret_String
Add this to your .env
file in order for authentication and, consequently, the application to work as intended
This project uses MongoDB as a database. If you have not yet installed Mongo, you can find installation instructions here. After installation, make sure you are running Mongo with:
mongod
You may also consult [the mongod documentation] for more flags and settings.
To run the project locally, use the command yarn start
in the root project folder
Check your node version if you are experiencing issues. This project is running on Node v15.14.x
. To run correctly, make sure you have at least Node v15.14.x
installed. You may be running the long-term support version (LTS) Node v14.16.x (LTS)
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
This project is licensed under the MIT license.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Clone the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Rebase your commits (
git rebase -i origin/main
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Make sure to follow our code of conduct!
To run tests, cd into the client folder and run the following command:
yarn test
If you have any questions about the repo, open an issue or contact the repo owner or one of the contributors.