git clone https://github.com/gabriel-frattini/theOrchard
npm install
- Create a PlanetScale database
- Create a connection string to connect to your database. Choose Prisma for the format
- Alternatively, your PlanetScale database and connection string can be generated using the pscale CLI or GitHub Actions. View instructions.
- Set up the environment variables:
cp .env.example .env
- Open
.env
and set theDATABASE_URL
variable with the connection string from PlanetScale - Create the database schema:
npx prisma db push
- Get your api key, api secret and cloud name from cloudinary
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
npm run dev
Open http://localhost:3000 in your browser.
One-click deploy: