iron-fish / ironfish-api

Public Iron Fish API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ironfish-api

Build

Installing

  • Make sure you're running at least Node 20 - you may want to avail yourself of a tool like nvm
  • Run yarn to install dependencies
  • Run yarn docker:start to start docker
  • Run yarn build to build things locally
  • Run yarn db:client:generate to generate the Prisma client
  • Run yarn db:migrate to execute migrations and optionally create a migration if you have made schema changes
  • (Optional) Run yarn db:seed:testing to 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:dev to run the app with hot reload
  • If you prefer to run without hot reload, run yarn build to build the app and then yarn start to run it

Database

  • Run yarn db:client:generate to generate the Prisma client
  • Run yarn db:migrate to create a migration

About

Public Iron Fish API

License:Mozilla Public License 2.0


Languages

Language:TypeScript 97.2%Language:PLpgSQL 1.7%Language:JavaScript 0.8%Language:Nix 0.2%Language:Shell 0.1%Language:Procfile 0.1%