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.
- Make sure the API server is already up and running
- 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
- Install dependencies
npm install
- Run the webapp
npm run serve
- Navigate to http://localhost:8080