This is a simple proxy server that runs on the google cloud platform
- Nodejs - to install nodejs visit nodejs.org
- A google cloud account - to create a google cloud account visit cloud.google.com
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repo to your local machine
git clone https://github.com/ifeLight/proxy-server-gcp-functions proxy-server
- Change directory into the project directory
cd proxy-server
- Install dependencies
npm install
- Copy the
sample.env.yaml
and create a new file.env.yaml
and fill in the required details. - Run the app
npm start
and visithttp://localhost:8080
to see the app running.
To run the tests, run npm test
To deploy follow the following steps:
- Create a new project on the google cloud platform
- Install the google cloud sdk on your local machine Click here to install the google cloud sdk.
- Run
gcloud init
to initialize the sdk - Create a new service account and download the json file
- Copy the
sample.env.yaml
and create a new file.env.yaml
and fill in the required details. - Run
npm run deploy
to deploy the app to the cloud functions