How to deploy in local machine
Deploy Api-Server, Admin Web Dashboard, Mobile App and Amplitude Dashboard for Analytics in Local machine
Installation Steps
Download LyonEat app and extract it
Open terminal in extracted folder
Api Server
run
cd food-delivery-apiin terminalSet environment file (.env)
NODE_ENV=development PORT=8000 CONNECTION_STRING={DB Connection string} RESET_PASSWORD_LINK=http://localhost:{Admin Dashboard port no}/auth/reset/?reset= SERVER_URL=http://{local network IP address}:{port no}/ NOTIFICATION_ON_CLICK=http://{local network IP address}:{port no}/dashboardCreate an account on mlab, then Create a database on mlab, copy connection string and paste it in
.envagainst the keyCONNECTION_STRING. Read more about how to use mlab hererun
npm installoryarn installto install packagesthen run
node index.jsin terminal. look for messages in terminal for completion of seeding data. Now runcd ..in terminal and follow next steps.run
npm startin terminal to start server
NOTE: For notifications to work on android you'll have to upload FCM token on expo server. Read more about it here
Admin Web Dashboard
run
cd food-delivery-adminin terminalInstall packages by
yarn installupdate
server_urlin/config/config.jsif you are running API/Server on different url/portrun
npm start
Mobile App
Go to folder food-delivery-app
Install packages by
npm installoryarn installupdate
GRAPHQL_URLandWS_GRAPHQL_URLin/environment.jsif you are running API/Server on different url/portRun the mobile app by
npm startScan the QR code with the Expo app (Android) or the Camera app (iOS).
Rider App
Go to folder food-delivery-app
Install packages by
npm installoryarn installupdate
GRAPHQL_URLandWS_GRAPHQL_URLin/environment.jsif you are running API/Server on different url/portRun the mobile app by
npm startScan the QR code with the Expo app (Android) or the Camera app (iOS).
Analytics Dashboard
Explore demo version on https://amplitude.com get amplitude key and replace it with amplitudeApiKey in app.json of mobile app.
You can further explore dashboard by following amplitude documentation. https://developers.amplitude.com/
Last updated
Was this helpful?