Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 864 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 864 Bytes

webapp-ts

Sample project with a webapp written in TS and corresponding API server to demonstrate the use of this library.

The webapp demonstrates how to use the sf class with TS specific features. You can still use this library without TS, by simply ignoring all the TS annotations.

This requires the browser to support the modern fetch API.

Running the webapp

  1. Make sure the API server is already up and running
  2. Go to the main project folder root, and build the project
    # Install dependencies required for simpler-fetch to build
    npm install
    # Build simpler-fetch locally so the sample app can use the latest development version
    npm run build
  3. Install dependencies
    npm install
  4. Run the webapp
    npm run serve
  5. Navigate to http://localhost:8080