susmaycan / adoptdontbuy-client

Webpage to adopt/publish pets made with ReactJS.
https://adoptdontbuy.netlify.app/
MIT License
0 stars 0 forks source link

backend #13

Open nikhitha-0611 opened 2 years ago

nikhitha-0611 commented 2 years ago

need explanation about backend how to connect what to include

susmaycan commented 2 years ago

It depends, are you using my deployed back-end or is it local? Anyways, you'll need a .env file with the following fields:

REACT_APP_API_URL=URL of the backend
REACT_APP_API_URL_ANIMAL=animal
REACT_APP_API_URL_FAVOURITE=favourite
REACT_APP_API_URL_REVIEW=review
REACT_APP_API_URL_SEARCH=search
REACT_APP_API_URL_USER=user
REACT_APP_FIREBASE_API_KEY=firebase api key
REACT_APP_authDomain=firebase auth domain
REACT_APP_databaseURL=firebase database URL
REACT_APP_messagingSenderId=firebase messaging sender id
REACT_APP_projectId=firebase project id
REACT_APP_storageBucket=firebase storage bucket

As you can see you also need a firebase account to manage the login. Hope this helps! 😄

nikhitha-0611 commented 2 years ago

Thank you for your reply

On Wed, Oct 19, 2022, 01:20 Susana Mayo Cano @.***> wrote:

It depends, are you using my deployed back-end or is it local? Anyways, you'll need a .env file with the following fields:

REACT_APP_API_URL=URL of the backend

REACT_APP_API_URL_ANIMAL=animal

REACT_APP_API_URL_FAVOURITE=favourite

REACT_APP_API_URL_REVIEW=review

REACT_APP_API_URL_SEARCH=search

REACT_APP_API_URL_USER=user

REACT_APP_FIREBASE_API_KEY=firebase api key

REACT_APP_authDomain=firebase auth domain

REACT_APP_databaseURL=firebase database URL

REACT_APP_messagingSenderId=firebase messaging sender id

REACT_APP_projectId=firebase project id

REACT_APP_storageBucket=firebase storage bucket

As you can see you also need a firebase account to manage the login. Hope this helps! 😄

— Reply to this email directly, view it on GitHub https://github.com/susmaycan/adoptdontbuy-client/issues/13#issuecomment-1282924996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWYDVHP5FDS23VD7O2KHJOLWD35SFANCNFSM6AAAAAARH73O7U . You are receiving this because you authored the thread.Message ID: @.***>