How to deploy in local machine
Deploy Api-Server, Admin Web Dashboard, Mobile App, Customer Web App and Amplitude Dashboard for Analytics in Local machine
Installation Steps
Download Enatega full app and extract it
Open terminal in extracted folder
Api Server
run
cd enatega-multivendor-api
in terminalSet environment file (.env)
Create an account on MONGO ATLAS, then Create a database, copy connection string and paste it in
.env
against the keyCONNECTION_STRING
. Read more about how to use mongo atlas herethen run
npm install
in terminal to install packagesinstall nodemon globally using npm i -g nodemon then run
nodemon
in terminal to start the api.
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 enatega-multivendor-admin
in terminalInstall packages by
npm install
oryarn install
update
SERVER_URL, WS_SERVER_URL, CLOUDINARY_UPLOAD_URL, CLOUDINARY_CATEGORY, CLOUDINARY_FOOD, CLOUDINARY_PROFILE
insrc/config/config.js
if you are running API/Server on different url/portrun
npm start
to run the admin dashboard
install expo-cli globally using npm install -g expo-cli
before trying to run the apps.
Mobile App
Go to folder
enatega-mutlivendor-app
Install packages by
npm install
oryarn install
update
GRAPHQL_URL, WS_GRAPHQL_URL, SERVER_URL
in/environment.js
if you are running API/Server on different url/port,development
configurations are used when you are running app locally.Run the mobile app by
expo start
Scan the QR code with the Expo app (Android) or the Camera app (iOS).
Rider App
Go to folder
enatega-multivendor-rider
Install packages by
npm install
oryarn install
update
GRAPHQL_URL
andWS_GRAPHQL_URL
in/environment.js
if you are running API/Server on different url/port,development
configurations are used when you are running app locally.Run the mobile app by
expo start
Scan the QR code with the Expo app (Android) or the Camera app (iOS).
Restaurant App
Go to folder
enatega-multivendor-restaurant
Install packages by
npm install
oryarn install
update
GRAPHQL_URL
andWS_GRAPHQL_URL
in/environment.js
if you are running API/Server on different url/port,development
configurations are used when you are running app locally.Run the mobile app by
expo start
Scan the QR code with the Expo app (Android) or the Camera app (iOS).
Customer Web App
Go to folder
enatega-multivendor-web
Install packages by
npm install
or
yarn install
Update
SERVER_URL
WS_SERVER_URL
GOOGLE_CLIENT_ID
FACEBOOK_SCHEME
FACEBOOK_ID
STRIPE_PUBLIC_KEY
PAYPAL_KEY
FACEBOOK_NAME
GOOGLE_MAPS_KEY
in/enatega-mutlivendor-web/src/config/constant.js
'Run
npm start
inside the folder
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