haelmj / fest-workshop-express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started with this Repo

This is a demo on how to proxy requests through an express server. This demo was delivered during the CBF fest as part of a technical workshop on "Securing Secret Keys in Frontend Applications"

This project was bootstrapped with Create React App.

Prerequisites:

  • Ensure the following are installed:
    • Node
    • Docker Engine
  • Sign up to the API service here
  • Access your API keys here

Setting Up

  1. Clone this repository: git clone https://github.com/haelmj/fest-workshop-nginx.git

  2. Using a code editor, rename the .env.example file in the express-app to .env and replace the text on the right side of the equal sign with your API Key.

  3. Install the dependencies and build react app: npm install && npm run build

  4. Move the build folder into the express-app folder

  5. Go into the express-app directory and install dependencies: cd express-app && npm install

  6. Start the app: index.js

Server should be visible on 127.0.0.1:3000 or http://localhost:3000

About


Languages

Language:JavaScript 47.5%Language:HTML 37.5%Language:CSS 14.7%Language:Shell 0.3%