- Clone this repo
- Make a
.env
file with your Railway Postgres connection URL. The file should look like this:
DATABASE_URL="connection_url"
- Make a
.env.local
file with your Google API credentials, Cloudinary API credentials, Stripe API credentials and AUTH_SECRET. The file shoud look like this:
NEXT_PUBLIC_APP_URL="http://localhost:3000"
GOOGLE_CLIENT_ID="google_client_id"
GOOGLE_CLIENT_SECRET="google_client_secret"
CLOUDINARY_CLOUD_NAME="cloudinary_cloud_name"
CLOUDINARY_API_KEY="cloudinary_api_key"
STRIPE_SECRET_KEY="stripe_secret_key"
STRIPE_ENDPOINT_SECRET="stripe_endpoint_secret"
CLOUDINARY_API_SECRET="cloudinary_api_secret"
AUTH_SECRET="auth_secret"
- Run
npm install
- Run
npx prisma migrate dev
- Run
npm run dev