This is the Express.js backend code for hammyflip.com. The website uses devnet—mainnet is not available.
First run yarn
to install all packages.
Then, Ctrl-F for "REPLACE" and replace all instances.
Finally, run yarn start
to start the server. After that, you should be able to go to http://localhost:4001/.
First, make your desired changes to schema.prisma
.
Then, run something like the following:
DATABASE_URL="REPLACE" yarn prisma migrate dev --name MIGRATION_NAME_HERE
This will apply all DB migrations to the DB we use for local development.
In order to insert into the DB used for local development, run:
DATABASE_URL="REPLACE" yarn prisma studio