This is a simple React project which has been bootstrapped with Create React App.
The application itself allows the user to post details of attractions they have visited and also allow the user to add locations they'd like to visit (in a bucket list).
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
This project relies on only a few extra packages:
- react-router-dom: This enabled routing within the application.
- axios: This has been included to add examples of how to make HTTP POST/GET requests in comparison to the Fetch API.
When running the application you must create a local .env
file before running npm start
.
The following content must be inside your .env
file:
REACT_APP_TRAVEL_API_URL=<some firebase realtime db url>
REACT_APP_TRAVEL_DB_NAME=travelblogs.json
If you do not provide REACT_APP_TRAVEL_DB_NAME
it will default to travelblogs.json
.
If REACT_APP_TRAVEL_API_URL
is not provided, the application will exit.