Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
configs
misc
react
svelte
vue
.gitignore
README.md
build.js
package.json
server.js
updateCategory.js

README.md

Curi Examples

React Examples

Vue Examples

Svelte Examples

For any example that you want to run locally, you need to install its dependencies and build the bundle.

cd <example-folder>
npm install

While most of these examples are client side only, they still use browser history objects, which require a server to handle dynamic requests. This directory contains a server.js file that you can run to serve the examples.

# make sure dependencies are installed
npm install
# if you want to run using source code, install by
# bootstrapping from the repo's root
npm run bootstrap:all

# build an example
node build.js <example-folder> <example-type>
# e.g.
node build.js react/modal react

# serve the example
node server.js <example-folder>
# e.g.
node server.js react/modal