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
- Node.js (Version: >=20)
- Postgresql
-
Clone the repository:
git clone [email protected]:STomkiel/nutri-track.git
-
Navigate to the project directory:
cd nutri-track
-
Install packages with npm
npm install
-
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 underNEXTAUTH_SECRET
in the.env
file.
-
Run the SQL migration file against the database:
npx prisma migrate dev
-
Populate the database with mock data:
node .\mockData\script.js
Start the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
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.
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
Special thanks to these amazing projects which help power nutri-track