This is a simple e-commerce demo using Fastify, PostgreSQL, and Remix.
- Clone the repository
- Install dependencies:
npm install
- Run
npm run postgresql
- Create a
.env
file with the following content (replaceYOUR_IP
with your IP address):
DATABASE_URL=postgresql://postgres:password@localhost:5432/fastify_ecommerce
Run npm run dev
to start the development server.
It will start the Fastify server and the Remix development server and hot reload things as they are changed on disk
First run npm run build
to build the Remix app.
Then run npm start
to start the Fastify server and the Remix app in production mode.