To run the application
- Clone this repo
- Run
npm install
- Run
npm start
- HTML
- CSS
- Javascript
- React
- styled-components
- React Router
- React Hooks
- React Context API
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
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
Deployed on
- Ali Darraji - https://github.com/adarraji