To run your Remix app locally, make sure your project's local dependencies are installed:
npm install
Afterwards, start the Remix development server like so:
npm run dev
Open up http://localhost:3000 and you should be ready to go!
If you're used to using the vercel dev
command provided by Vercel CLI instead, you can also use that, but it's not needed.
This command is used for initial Prisma setup:
npx prisma init --datasource-provider mongodb
This is used to synchronize the Prisma schema with the database schema for prototyping.
Also, for initial setup, this is the command that should be used after .env
and npm install
:
npx prisma db push
This command is used to open prisma studio in the browser:
npx prisma studio
This command generates assets like Prisma Client (Use db push if new collection/model is created in Prisma schema):
npx prisma generate
.env
# MongoDB URL
DATABASE_URL=""
# This can be anything you want
SESSION_SECRET=""
# AWS S3 details
KUDOS_S3_ACCESS_KEY_ID=""
KUDOS_S3_SECRET_ACCESS_KEY=""
KUDOS_S3_BUCKET_NAME=""
KUDOS_S3_BUCKET_REGION=""