This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/README.md

32 lines
882 B
Markdown
Raw Normal View History

2020-01-30 18:39:56 +00:00
# Skynet Portal
2020-01-31 19:10:50 +00:00
## Setup Guide
2020-02-18 16:25:03 +00:00
A setup guide with scripts to install prerequisites can be found in the [setup-scripts](./setup-scripts) directory.
2020-01-31 21:58:30 +00:00
Once the setup guide is complete you will be running:
2020-02-18 16:25:03 +00:00
2020-02-14 02:18:26 +00:00
- `siad` configured as a Skynet Portal
2020-02-18 16:25:03 +00:00
- an nginx webserver serving webportal
2020-02-28 12:52:32 +00:00
## Web application
### Development
Use `yarn start` to start the development server.
### Production build
Use `yarn build` to compile the application to `/public` directory.
### Build parameters
You can use the below build parameters to customize your application. You can use them both on development and production builds.
- development example `GATSBY_API_URL=https://siasky.dev yarn start`
- production example `GATSBY_API_URL=https://siasky.net yarn build`
#### List of available parameters
- `GATSBY_API_URL`: you can override the api url if it is different than the location origin