https://github.com/maniator/proxy-backend
Creates a small express app to proxy a backend application to a hosted URL for frontend deveopment
https://github.com/maniator/proxy-backend
Last synced: about 1 year ago
JSON representation
Creates a small express app to proxy a backend application to a hosted URL for frontend deveopment
- Host: GitHub
- URL: https://github.com/maniator/proxy-backend
- Owner: maniator
- Created: 2016-06-17T20:26:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T19:08:06.000Z (about 5 years ago)
- Last Synced: 2025-02-13T11:50:22.210Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Proxy Backend
The purpose of this application is for frontend developers to work in their own enviroments without the need to install any VMs related to the backend APIs
To use in "dev" mode (with nodemon) run:
```
npm run dev
```
To use in "prod" mode (with plain ol' node) run:
```
npm start
```
### Config Instructions:
First create a `config-local.js` in the `/config` directory.
The config contains data in the following scheme:
```
{
"host": "The url to the host that will contain the apis or any other backend assets that the frontend code will use"
"localPaths": [{
hostRoute: '/test', // route that we are overriding
localPath: './test', // location of the code that will be overriding the original
}],
}
```