How to deploy in local machine
Last updated
Was this helpful?
Last updated
Was this helpful?
Download OLO full app and extract it
Open terminal in extracted folder
run cd olo-api
in terminal
Set 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}/dashboard
Create an account on mongo atlas, then Create a database on mongo atlas, copy connection string and paste it in .env
against the key CONNECTION_STRING
. Read more about how to use mongo atlas
run npm install
or yarn install
to install packages
then run node index.js
in terminal. look for messages in terminal for completion of seeding data. Now run cd ..
in terminal and follow next steps.
runnpm start
in 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
run cd olo-admin
in terminal
Install packages by npm install
or yarn install
update server_url
in /config/config.js
if you are running API/Server on different url/port
run npm start
Go to folder olo-app
Install packages by npm install
or yarn install
update GRAPHQL_URL
and WS_GRAPHQL_URL
in /environment.js
if you are running API/Server on different url/port
Run the mobile app by npm start
Scan the QR code with the Expo app (Android) or the Camera app (iOS).