This is the source code for nphvac.com.
- External dependencies
- Install PostgreSQL.
- Installation
- Install node v14 and yarn (
npm i -g yarn
) - Install dependencies using
yarn
- Install the database client using
yarn prisma generate
- Build using
yarn build
- Install node v14 and yarn (
- Configuration
- Copy
.env.example
to.env
and fill it in
- Copy
- Running
- In development only:
- Use
yarn prisma db push
to synchronize the database schema. Everytime you change the schema (database/schema.prisma
), run this command again. - Run using
yarn start
or run with a watcher usingyarn watch
- Use
- In production only:
- Use
yarn prisma migrate
to run pending migrations - Run using
node dist
- Use
- In development only: