Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.09 KB

README.md

File metadata and controls

69 lines (46 loc) · 1.09 KB

React Blog App

To run the application

  1. Clone this repo
  2. Run npm install
  3. Run npm start

Built With

  • HTML
  • CSS
  • Javascript
  • React
  • styled-components
  • React Router
  • React Hooks
  • React Context API

Environmental Variables

Server Base URL

Add the backend server base url REACT_APP_BASE_URL in:

  • src/pages/Register.js
  • src/context/authContext.js
  • src/pages/Home.js
  • src/pages/Single.js
  • src/pages/Write.js
  • src/components/Menu.js

Or create .env file for React app

REACT_APP_BASE_URL=http://localhost:3000/api/

then use it like this

process.env.REACT_APP_BASE_URL

Server Uploads URL

Add the url where the the images are stored on the server REACT_APP_UPLOAD_URL in:

  • src/pages/Home.js
  • src/pages/Single.js
  • src/components/Menu.js

Or create .env file for React app

REACT_APP_UPLOAD_URL=http://localhost:3000/uploads

then use it like this

process.env.REACT_APP_UPLOAD_URL

Deployment

Deployed on

Authors