r3plica
is a project born from Coinbase Hackathon
, and this repository is the back-end of r3plica
project.
Our server implemented based on Nest
& Prisma ORM
.
For interacting with blockchain, we use web3.js
& @ethersproject/wallet
library.
# Install dependencies
$ yarn
Before running server, you need .env
file in root directory.
Please make .env
file.
.env
file example
PORT=
ENVIRONMENT=
DATABASE_URL=
PLAY_FAB_X_SECRET_KEY=
PLAY_FAB_TITLE_ID=
PLAY_FAB_HOST=
APOTHEM_PROVIDER=
SLACK_WEBHOOK_URL=
Running commands:
# DB Setting
# Before run this command, you have to fill .env file first.
yarn db-setup
# Running server command options
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
If you run server successfully, you can see Swagger API document in http://localhost:8081/docs
This repository a is part of r3plica project SDK.
Another repository links are down below;