Paper trading game. Buy and sell assets and trade cards speculating on the price of those assets.
Requirements
Dependencies
Dev Dependencies
- In
/clientand/serverdirectories, runnpm installscript to install dependencies - In
/clientdir, copyconfig.example.ts, rename copy toconfig.tsand fill out (Reference) - In
/serverdir,example.env, rename copy to.envand 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
/clientdir, run scriptnpm run dev - In
/serverdir, run scriptnpm run dev - In browser, open
http://localhost:3001to view client
- TBD
Client Development
npm run dev[NextJS] Hosts client in NextJS development mode on port 3001, fast reloads on file saveother client scriptsTBD
Server Development
npm run dev[Express] Hosts express server onSV_PORT, fast reloads on file saveother server scriptsTBD
Production
- TBD
serverURLAPI server URL (default: http://localhost:3000)
SV_PORTServer port (default: 3000)SV_SECRETSet to a random string of your choosingPG_HOSTPostgreSQL ip address or domain namePG_PORTPostgreSQL server portPG_DBName of PostgreSQL database to connect toPG_USERUsername of database userPG_PWPassword of database userCL_ORIGIN1First origin domain for authenticated requests (default: http://localhost:3001)CL_ORIGIN2Second (if required) origin domain for authenticated requests (default: http://127.0.0.1:3001)CMC_API_URLAPI URL for CoinMarketCap, used for realtime crypto market data (default: sandbox creds)CMC_API_KEYAPI Key for CoinMarketCap (default: sandbox creds)CC_API_URLProduction API URL for CryptoCompare, used for historical crypto market dataCC_API_KEYProduction API Key for CryptoCompare (default: na-na nothing)