ironfish-api
September 30, 2024 ยท View on GitHub
Installing
- Make sure you're running at least Node 20 - you may want to avail yourself of a tool like nvm
- Run
yarnto install dependencies - Run
yarn docker:startto start docker - Run
yarn buildto build things locally - Run
yarn db:client:generateto generate the Prisma client - Run
yarn db:migrateto execute migrations and optionally create a migration if you have made schema changes - (Optional) Run
yarn db:seed:testingto load some sample data into the database
Environment
You'll need a .env file including keys listed in env.template. We recommend copying .env.template to your own .env file.
Running
- Run
yarn start:devto run the app with hot reload - If you prefer to run without hot reload, run
yarn buildto build the app and thenyarn startto run it
Database
- Run
yarn db:client:generateto generate the Prisma client - Run
yarn db:migrateto create a migration