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

README for setting up the backend and database locally #10

Closed
Flinze opened this issue Sep 30, 2021 · 8 comments
Closed

README for setting up the backend and database locally #10

Flinze opened this issue Sep 30, 2021 · 8 comments

Comments

@Flinze
Copy link

Flinze commented Sep 30, 2021

Hello,

Can you provide some details on how to setup everything up for devs to work on the project as a boilerplate? there does not seem to be any documentation in the readme on setup. Specifically for the backend and database.

Thanks.

@shabfactor
Copy link

hi, it seems the local api setup is not working the localhost:8888 is giving this error {"success":false,"message":"Api url doesn't exist "}

@idurar
Copy link
Collaborator

idurar commented Jan 11, 2022

@shabfactor
change it here this file :
frontend/src/config/serverApiConfig.js

@idurar
Copy link
Collaborator

idurar commented Jan 11, 2022

@Flinze

## Setup backend

1) just create MongoDB Atlas accout database url 
2) change this file name .variables.env.tmp to  .variables.env
3) open  .variables.env and paste your MongoDB url here :  DATABASE=your-mongodb-url
4) npm install
5) npm setup

## Setup frontend
1) cd frontend 
2) npm install
3) change api config to loaclhost in this : src/frontend/src/config/serverApiConfig.js
 

## start server
1) npm start

## start react app
1) cd frontend
2) npm start

@idurar idurar closed this as completed Jan 11, 2022
@shabfactor
Copy link

@shabfactor change it here this file : frontend/src/config/serverApiConfig.js

@idurar
should i change it to http://localhost/api/ or http://localhost:8888/api/?

@idurar
Copy link
Collaborator

idurar commented Jan 12, 2022

To http://localhost:8888/api/ , and make sure that server is running on 8888

@mituBarua
Copy link

@idurar can you please help me to setup backend??

@RathodChirag
Copy link

Hey @shabfactor, what did you change in the file : frontend/src/config/serverApiConfig.js. because I also have same error as you

@Rathod0140
Copy link

Hey @shabfactor, what did you change in the file : frontend/src/config/serverApiConfig.js. because I also have same error as you

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