gokulkrishh / expense.fyi

Effortlessly track and manage expenses on-the-go with categorisation and logging.
https://expense.fyi
GNU Affero General Public License v3.0
618 stars 86 forks source link

How to run the project locally #88

Closed moonpatel closed 11 months ago

moonpatel commented 11 months ago

I tried cloning the repository and did "npm install" and then "npm run dev". But it is stuck halfway. This is the log of my terminal, am I missing something?

`

expense.fyi@0.1.0 predev prisma format && prisma generate

Prisma schema loaded from prisma\schema.prisma Formatted C:\projects\open_source\expense.fyi\prisma\schema.prisma in 31ms 🚀 Prisma schema loaded from prisma\schema.prisma

✔ Generated Prisma Client (4.16.2 | library) to .\node_modules\@prisma\client in 123ms

✔ Generated field-level encryption migrations (1.4.5) to .\prisma\migrations in 20ms You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client

import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

expense.fyi@0.1.0 dev next dev

gokulkrishh commented 11 months ago

@moonpatel You need to add the API keys and supabase keys in .env file. Check env.example file for what you need to get it started.

moonpatel commented 11 months ago

@moonpatel You need to add the API keys and supabase keys in .env file. Check env.example file for what you need to get it started.

How can I generate these enironment variables ?

gokulkrishh commented 11 months ago

@moonpatel You can get all the info the respective sites. env.example file has name for each required keys.

dbhurley commented 7 months ago

Please, how is this variable correctly set in the .env PRISMA_FIELD_ENCRYPTION_KEY

gokulkrishh commented 7 months ago

@dbhurley you can follow the steps from here.