Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please create proper instructions to setup app locally #3

Open
JOEMN96 opened this issue May 1, 2022 · 8 comments
Open

Please create proper instructions to setup app locally #3

JOEMN96 opened this issue May 1, 2022 · 8 comments

Comments

@JOEMN96
Copy link

JOEMN96 commented May 1, 2022

Please provide env variables to run application locally

@satishkumaragarwal
Copy link

Can you paste the exact error you are facing? I could set it up easily by the below steps:

  1. Clone the repo
  2. Change working directory to repo folder (biap-app-ui-front)
  3. run "yarn"or "npm install" to install dependencies
  4. run "yarn start" or "npm run start" to run the app

Pre-requisites

  1. node version ">=14.0.0".

@karancontexio
Copy link

same problem please provide detailed information for starting the project like where to place environment variables

@JOEMN96
Copy link
Author

JOEMN96 commented May 2, 2022

Please provide env variable names and values.

@JOEMN96
Copy link
Author

JOEMN96 commented May 2, 2022

image

@karancontexio
Copy link

karancontexio commented May 2, 2022

You can do the following to run the app
create a .env file in root directory and put

.env

REACT_APP_FIREBASE_API_KEY=YOUR API KEY
REACT_APP_FIREBASE_AUTH_DOMAIN=YOUR AUTH DOMAIN

You can find your api key bye creating a firebase app
then you can get your API and AUTH DOMAIN

from https://console.cloud.google.com/apis/credentials

and you also have to enable basic email id password log in firebase app in dashboard>authentication

@gsmental
Copy link

gsmental commented May 9, 2022

I did not find any REACT_APP_BASE_URL to access api from ondc network

axios.js line no.5
axios.defaults.baseURL = process.env.REACT_APP_BASE_URL;

@gsmental
Copy link

gsmental commented May 9, 2022

add dotenv package to package.json file. otherwise it is very difficult for people to start a new project

@screensforme
Copy link

Did any one managed to run this system ?
I managed to start biap-app-ui-front, biap-client-node-js servers.
I am able to login from http://localhost:3000 ,
when I try to search for any location I get below error on console

GET http://localhost:3000/mmi/api/mmi_query?query=brook 404 (Not Found)

What should the REACT_APP_BASE_URL configured with.. ?

@authors, could you please create a readme with steps so that it would be good for the new contributors/beginners to start with ?

navdeep710 pushed a commit that referenced this issue May 12, 2023
wemakshaychavan pushed a commit that referenced this issue Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants