This is a two-tier application.
To get started with this project, follow these steps:
- Clone the repository.
- Install dependencies for the front end using
npm install
. - Start the development server for the front end using
npm start
. - Make sure the backend server is running (see instructions below).
- Click the "Send Request" button to interact with the backend.
- View the response received from the backend.
You can configure the backend URL by updating the backendUrl
variable in config.json
. This file can be found at the root of the project.
{
"backendUrl": "http://127.0.0.1:5000"
}
Update the backendUrl value to match the URL of your backend server.
To run the backend server, follow these steps:
pre-requisites: python 3.11
- Navigate to the backend directory.
- Install dependencies for the backend using
pip install -r requirements.txt
. - Start the backend server on development using
python app.py
.
To build the static content for production and serve it using serve, follow these steps:
- Navigate to the frontend directory.
- Install dependencies for the front end using
npm install
. - Build the static content using
npm run build
. - Serve the static content using serve:
npm install -g serve
serve -s build
This will start a server hosting the static content from the build directory.
Feel free to contribute to this project by submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.