Paper trading game. Buy and sell assets and trade cards speculating on the price of those assets.
Requirements
Dependencies
Dev Dependencies
- In
/client
and/server
directories, runnpm install
script to install dependencies - In
/client
dir, copyconfig.example.ts
, rename copy toconfig.ts
and fill out (Reference) - In
/server
dir,example.env
, rename copy to.env
and fill out (Reference) - Create an account
- Create an asset pool for your account
- Initialize the writer to create contract types and contracts
More detailed steps TBD
- (Follow general steps)
- In
/client
dir, run scriptnpm run dev
- In
/server
dir, run scriptnpm run dev
- In browser, open
http://localhost:3001
to view client
- TBD
Client Development
npm run dev
[NextJS] Hosts client in NextJS development mode on port 3001, fast reloads on file saveother client scripts
TBD
Server Development
npm run dev
[Express] Hosts express server onSV_PORT
, fast reloads on file saveother server scripts
TBD
Production
- TBD
serverURL
API server URL (default: http://localhost:3000)
SV_PORT
Server port (default: 3000)SV_SECRET
Set to a random string of your choosingPG_HOST
PostgreSQL ip address or domain namePG_PORT
PostgreSQL server portPG_DB
Name of PostgreSQL database to connect toPG_USER
Username of database userPG_PW
Password of database userCL_ORIGIN1
First origin domain for authenticated requests (default: http://localhost:3001)CL_ORIGIN2
Second (if required) origin domain for authenticated requests (default: http://127.0.0.1:3001)CMC_API_URL
API URL for CoinMarketCap, used for realtime crypto market data (default: sandbox creds)CMC_API_KEY
API Key for CoinMarketCap (default: sandbox creds)CC_API_URL
Production API URL for CryptoCompare, used for historical crypto market dataCC_API_KEY
Production API Key for CryptoCompare (default: na-na nothing)