Giter Site home page Giter Site logo

luismda / daily-diet Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 577 KB

This project is a meal register to diet management app with metrics of diet progress.

TypeScript 97.21% JavaScript 2.79%
async-storage expo nativewind react-hook-form react-native react-navigation typescript zod

daily-diet's Introduction

Daily Diet ๐Ÿฝ๏ธ๐Ÿ˜‹


About

Daily Diet is a mobile application to control your diet. In it you can register your meals and follow your progress.

With this application, you can register a new meal at a specific date and time, informing whether or not it is in your diet. It is also possible to view the details of each meal, as well as edit and delete your already registered meals. In addition, the application provides you with a follow-up of your diet, providing feedback through some statistics and metrics based on the meals already registered, such as the best sequence of meals within the diet, percentage of meals in the diet, among other information.

The project was developed using these technologies:

  • TypeScript
  • React Native
  • Expo Managed Workflow
  • NativeWind (library to use TailwindCSS in React Native)
  • React Navigation (stack navigation)
  • Async Storage (used to local storage of meals)
  • React Hook Form
  • Zod

Finally, this project was a challenge developed in the React Native training in Rocketseat Ignite course. The main purpose of this app was to practice styling, navigation and local storage, as well as some React Hooks and techniques, and good coding practices.

Access the project layout in Figma

Instructions

  1. Clone the repository:
git clone https://github.com/luismda/daily-diet.git
  1. Install the dependencies:
npm i
  1. Run app:
npm start
  1. To preview the app, you can use Expo Go on your physical device or use an Android or iPhone emulator on your computer. See some more details in the React Native and Expo documentation.

Get started

A good starting point to get to know the project better is to look at the code, so you can start with the screens folder, where all the project's screens are located. In the routes folder, you will also find all the routes defined in the app.

All components were created inside the components folder. You will notice that some of them have more than one file for the same component. This happens because of the Composition Pattern, which was used in some cases.

Finally, in the storage folder you will find the functions that handle Async Storage and handle local read and write operations. It is important to highlight that the key used to store the meals is defined in the constants folder.

Created by

Luรญs Miguel | LinkedIn

#NeverStopLearning ๐Ÿš€

daily-diet's People

Contributors

luismda avatar

Stargazers

 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.