Skip to content

Commit

Permalink
[Merge] add sample env files
Browse files Browse the repository at this point in the history
[Fixes #265] Add sample.env files

--
Merge pull request #270 from RusherRG/sample.env
  • Loading branch information
ADI10HERO committed Jul 31, 2021
2 parents b6722ad + 7be7e56 commit 923e823
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions BackEndApp/sample.env
@@ -0,0 +1,3 @@
MONGODB_URI=mongodb://localhost:27017/
JWT_SECRET=abcdefh12345
FRONTEND_HOST=http://localhost:3000
1 change: 1 addition & 0 deletions FrontEndApp/v1-react/sample.env
@@ -0,0 +1 @@
REACT_APP_BACKEND_API_URL=http://localhost:8000
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -74,7 +74,9 @@ sudo ./scripts/install.sh
└───dogs
```

6. ```sh
6. Clone the `sample.env` to create `.env` in both `BackEndApp/` and `FrontEndApp/v1-react/` and configure the necessary environment variables

7. ```sh
# run the backend
# only after all requriements from requirements.txt are installed
cd BackEndApp
Expand All @@ -83,7 +85,7 @@ sudo ./scripts/install.sh
# you can ignore any migration warnings
```

7. ```sh
8. ```sh
# finally, run the react frontend
# on a new terminal tab
cd FrontEndApp/v1-react
Expand Down

0 comments on commit 923e823

Please sign in to comment.