- cd to
front - Run
npm install - Create
.envfile - Copy and paste the code below into the file
REACT_APP_USER_API=http://localhost:8000/api/user
REACT_APP_TICKET_ADDRESS=<TICKET CONTRACT ADDRESS>
REACT_APP_EVENT_ADDRESS=<EVENT CONTRACT ADDRESS>
REACT_APP_MARKET_ADDRESS=<MARKET CONTRACT ADDRESS>
- Go to
https://console.firebase.google.com/u/1/project/blockpass-17/settings/serviceaccounts/adminsdk - Click
Firebase Admin SDK - Click
Generate new private key - Rename the downloaded file to
firebase-config.json - Run
cd back - Move
firebase-config.jsonto current directory - Run
npm install - Create
.envfile - Copy and paste the code below into the file
FSALT_ROUNDS=10
JWT_PRIVATE_KEY=Bl4ckP455
- Run
cd front - Run
npm run start
- Run
cd back - Run
node index.js
- Launch Ganache
- Open cmd and go to the
eth-contractsfolder truffle compiletruffle migratetruffle test