Giter Club home page Giter Club logo

product-fe's Introduction

product-fe

This is a product listing front-end. It is made up of two parts: a client package and a server package. The client package is a React app and is served from /. The server package acts as an API gateway and forwards api requests from the client on the /api endpoint to the base url specified by the PRODUCT_BE_SERVER_URL environment variable.

This package is intended to be used with the product-be package. Product Listing Architecture

Configuration

The app accepts database configuration via these enviornmental variables:

Variable Description
PRODUCT_BE_SERVER_URL The URL to access the product-be service.
PORT The port number the server should be exposed on. It defaults to 8080.

Running Locally (React dev Server)

You can run the product-fe package in development mode with the following 2 commands in differnet terminals:

# Start the server
$ cd server
$ PRODUCT_BE_SERVER_URL="http://localhost:8080" PORT=3001 node bin/www
# Start the React dev server
$ cd client
$ npm start

This assumes the product-be is running on localhost on port 8080. The product-fe server will be running on port 3001 and the React dev server will be running on port 3000.

product-fe's People

Contributors

chrishumanitec avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.