echohtp / flipper-api

A Solana Coin Flip App

Home Page:https://hammyflip.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hammyflip Backend

Overview

This is the Express.js backend code for hammyflip.com. The website uses devnet—mainnet is not available.

Getting Started

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/.

Managing the Database

Modifying the Database Schema

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.

Inserting Into the Database

In order to insert into the DB used for local development, run:

DATABASE_URL="REPLACE" yarn prisma studio

About

A Solana Coin Flip App

https://hammyflip.com

License:GNU General Public License v3.0


Languages

Language:TypeScript 96.3%Language:JavaScript 3.7%