https://github.com/bluebigthink/stable-coin-bot
https://github.com/bluebigthink/stable-coin-bot
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bluebigthink/stable-coin-bot
- Owner: BlueBigThink
- License: mit
- Created: 2024-06-23T00:48:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-23T00:49:14.000Z (about 2 years ago)
- Last Synced: 2025-03-21T08:26:22.902Z (over 1 year ago)
- Language: HTML
- Size: 532 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Uniswap Stable Coin Bot
## Usage
Install [nodemon](https://github.com/remy/nodemon) globally
```
npm i nodemon -g
```
Install server and client dependencies
```
npm i
cd client
npm i
```
To start the server and client at the same time (from the root of the project)
```
npm run dev
```
Running the production build on localhost. This will create a production build, then Node will serve the app on http://localhost:5000
```
NODE_ENV=production npm run dev:server
```
## How this works
The key to use an Express backend with a project created with `create-react-app` is on using a **proxy**. We have a _proxy_ entry in `client/package.json`
```
"proxy": "http://localhost:5000/"
```
This tells Webpack development server to proxy our API requests to our API server, given that our Express server is running on **localhost:5000**