This is a frontend application for interacting with a two-tier application.
To get started with this project, follow these steps:
- Clone the repository.
- Install dependencies for the frontend using
npm install. - Start the development server for the frontend 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:
- Navigate to the backend directory.
- Install dependencies for the backend using pip install flask
- Start the backend server 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 frontend 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.