This is a calculator application built with React. It interacts with an AWS Serverless API (built separately) for its operations.
This project was bootstrapped with Create React App, using the Redux and Redux Toolkit TS template.
Follow these steps to get a local copy up and running.
Start by installing all the dependencies required for this project.
npm install
To run the application locally, simply use the following command:
npm start
To setup your environment variables, generate a .env
file. Here's an example of what it should look like:
# .env
REACT_APP_API_URL=http://localhost:3001
REACT_APP_ENV=dev
To run the build use the following command:
yarn build
This application can be deployed to an S3 bucket using the following command:
npm run deploy
The application makes requests to the following endpoints:
user login
- POST | {REACT_APP_API_URL}/dev/v1/loginrecord new user operation
- POST | {REACT_APP_API_URL}/dev/v1/recordsoft delete user operation
- DELETE | {REACT_APP_API_URL}/dev/v1/recordget all user operations
- GET | {REACT_APP_API_URL}/dev/v1/recordget all operations
- GET | {REACT_APP_API_URL}/dev/v1/operation
Replace {REACT_APP_API_URL}
with the actual API URL from your environment variable.
http://true-north-client-us-east-2.s3-website.us-east-2.amazonaws.com/
This project is licensed under the MIT License.