Coder Social home page Coder Social logo

dariusgarcia / nutrivalue Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 9.09 MB

Next.js app that lets users keep track of their daily calories, search recipes, and add their own recipes.

Home Page: https://nutrivalue.vercel.app/

License: MIT License

JavaScript 0.85% TypeScript 98.96% CSS 0.19%
calories-tracker mysql-database nextjs rest-api sequelize tailwindcss typescript user-authentication vercel-deployment html

nutrivalue's Introduction

nutrivalue

Next.js app that lets users keep track of their daily calories, search recipes, and add their own recipes.

Screenshot of web app

Description

I decided to build this web app to make it easy to keep count of my daily macros and meals. NutriValue allows you to input meals which keeps track of your calories, proteins, carbs, fats, etc.

Usage

  • Create an account and add meals to your diary
  • See total nutritional values

Technologies used:

  • React
  • Nextjs
  • TypeScript
  • Node.js
  • Express.js
  • Tailwind CSS
  • MySQL
  • User Authentication
  • Sequelize
  • Chart.js
  • Client hosted on Vercel
  • Server deployed on Heroku

User Stories

The following functionality is completed:

  • User can create an account and sign in.
  • The user should switch between different tabs - viewing the diary dashboard, add meal page, or home page.
  • User can search recipes to add to their meals
  • User can add, update, and delete meals from their diary
  • User can view their daily nutritional stats about what they ate

Installation

Setting up the Client

cd into the Client/ directory and run:

add env vars

NEXT_PUBLIC_SERVER_BASE_URL=http://localhost:4001
npm install
npm run dev

Build for production

npm run build

Setting up the Express Server

To start the server, you can cd into the Server/ directory and run:

add env vars

PORT=4001
HOST='127.0.0.1'
USER='root'
PASSWORD=
DATABASE='nutriValue'
JWT_SECRET_KEY=
npm install
npm run start or nodemon index.js

nutrivalue's People

Contributors

dariusgarcia avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.