Skip to content

Files

Latest commit

 

History

History

js-app-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

JS-APP-EXAMPLE

This is an example of React frontend project. The usage of spa-client is simple.

How to run this example

start a spa-server with admin-server enabled, change check .env config if is right, run the following shell to upload files to spa-server.

npm install && npm run build && npm run upload && npm run release

PS: local.fornetcode.com is routed to 127.0.0.1

There has a nice document deployed by GitHub Pages, You can get more information here.

Test bash

# multiple
npm run upload:m1 && npm run release:m1
npm run upload:m2 && npm run release:m2