Coder Social home page Coder Social logo

nutri-track's Introduction

Nutri-Track

Introduction

Introducing an innovative application that seamlessly integrates a recipe book with a diet tracker. Explore a vast array of recipes for your favorite dishes while effortlessly managing your meals. Whether you're searching for culinary inspiration or monitoring your dietary intake, this app offers a convenient solution for all your cooking and nutritional needs

Getting Started

Prerequisites

  • Node.js (Version: >=20)
  • Postgresql
  1. Clone the repository:

    git clone [email protected]:STomkiel/nutri-track.git
  2. Navigate to the project directory:

    cd nutri-track
  3. Install packages with npm

    npm install
  4. Setup your .env file

  • Duplicate .env.example and rename it to .env
  • Update the DATABASE_URL with your database connection string
  • Use openssl rand -base64 32 to generate a key and add it under NEXTAUTH_SECRET in the .env file.

Setting up database

  1. Run the SQL migration file against the database:

    npx prisma migrate dev
  2. Populate the database with mock data:

    node .\mockData\script.js

Running the application

Start the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Husky and Linting

Husky

Husky is used to manage Git hooks. Husky helps ensure that certain scripts run at specific points in your Git workflow (e.g., before commits or pushes). This project is configured to run linters before each commit.

Linting

ESLint is used to maintain code quality and consistency. ESLint is configured to run automatically before commits, thanks to Husky.

To run the linter manually, use:

npm run lint

To fix linting errors automatically, use:

npm run lint:fix

Acknowledgements

Special thanks to these amazing projects which help power nutri-track

nutri-track's People

Contributors

stomkiel 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.