Start the Remix development asset server and the Express server by running:
npm run dev
This starts your app in development mode, which will purge the server require cache when Remix rebuilds assets so you don't need a process manager restarting the express server.
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
Now you'll need to pick a host to deploy it to.
We're using SQLite along with Prisma.
To create database based on schema in prisma/schema.prisma
:
npx prisma migrate dev
To send queries to the database:
npx prisma db seed
To push the initial schema to the database (without any data):
npx prisma db push
To see current state of the database:
npx prisma studio