Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 837 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 837 Bytes

mina-arena-server

Node server for Mina Arena.

Development

Generate Typescript types for GraphQL schema and compile Typescript into Javascript:

npm run compile

Do the above and also start the server in one command:

npm run start

The server runs on port 3000.

Migrations

This app uses Sequelize, migrations can be run like so:

npx sequelize-cli db:migrate

Status of migrations can be checked like so:

npx sequelize-cli db:migrate:status

More info on Sequelize migrations at https://sequelize.org/docs/v6/other-topics/migrations/

GraphiQL

This server hosts its GraphQL API at /graphql.

You can interact with GraphiQL to test queries at that endpoint.