Ensure you have the following installed:
Run the following command to install necessary dependencies:
cd /api
npm install
cd /web
npm install
Modify the .env
file located in the /api
directory to specify your Postgres connection URL.
Example .env
file:
DATABASE_URL=postgres://username:password@localhost:5432/database
Run the following command to generate migrations:
npx drizzle-kit generate
Run the following command to apply migrations:
npx drizzle-kit migrate
"hello world!"
cd /api
npm run dev
cd /web
npm run dev