Skip to content

Commit

Permalink
fix secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
vabatista committed Mar 20, 2024
1 parent 26284d3 commit 22335f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main_vivaviajando-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
REACT_APP_GA_ID: ${{secrets.REACT_APP_GA_ID}}
REACT_APP_GA_CLIENT_ID: ${{secrets.REACT_APP_GA_CLIENT_ID}}
REACT_APP_DISQUS_APP_ID: ${{secrets.REACT_APP_DISQUS_APP_ID}}

jobs:
build:
runs-on: ubuntu-latest
Expand Down
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Introduction
This is the source code of my travel Blog. It was forked from [this repo](https://github.com/krishnaacharyaa/wanderlust), but I made several modificiations:
1 - splitted the project into two repositories for the backend and frontend. This make easier to deploy in containers.
2 - Added new Google Analytics tags
3 - Added a footer for "about us" page
4 - Removed VITE framework because I had many troubles with it to deploy on Azure.

1. splitted the project into two repositories for the backend and frontend. This make easier to deploy in containers.
2. Added new Google Analytics tags
3. Added a footer for "about us" page
4. Removed VITE framework because I had many troubles with it to deploy on Azure.

Currently this project is deployed on Azure, and you can access it through the following link:
[https://www.vivaviajando.blog.br/](https://www.vivaviajando.blog.br/)
Expand All @@ -14,8 +15,10 @@ Currently this project is deployed on Azure, and you can access it through the f
This app is build in React (frontend) + Node.js Express (backend).

To use this software it is pretty simple. You just need to clone the repository and run the following commands:
1 - create an .env file for backend with `MONGOD_URI` variable pointing to your MongoDB database. I used the free tier of MongoDB Atlas.
2 - create an .env file for frontend with these variables:

1. create an .env file for backend with `MONGOD_URI` variable pointing to your MongoDB database. I used the free tier of MongoDB Atlas.

2. create an .env file for frontend with these variables:
```
REACT_APP_API_PATH="http://localhost:5050"
REACT_APP_GA_ID="G-XXXXXXX"
Expand All @@ -24,8 +27,8 @@ REACT_APP_DISQUS_APP_ID="YOURID"
```
I used free tier of Disqus and Google Analytics. You can create an account and get these variables for free.

2 - run:
3. run:
```npm install```
```npm run dev (for backend)```
```npm start (for frontend)```
```npm start```


0 comments on commit 22335f5

Please sign in to comment.