2020-01-30 18:39:56 +00:00
|
|
|
# Skynet Portal
|
2020-01-31 19:10:50 +00:00
|
|
|
|
2022-02-02 08:18:48 +00:00
|
|
|
## Latest Setup Documentation
|
|
|
|
|
|
|
|
Latest Skynet Webportal setup documentation and the setup process Skynet Labs
|
2022-04-15 16:50:07 +00:00
|
|
|
supports is located at https://portal-docs.skynetlabs.com/.
|
2022-02-02 08:18:48 +00:00
|
|
|
|
2022-04-06 16:19:20 +00:00
|
|
|
Some scripts and setup documentation contained in this repository
|
|
|
|
(`skynet-webportal`) may be outdated and generally should not be used.
|
2022-02-02 08:18:48 +00:00
|
|
|
|
2020-02-28 12:52:32 +00:00
|
|
|
## Web application
|
|
|
|
|
2021-07-26 17:06:15 +00:00
|
|
|
Change current directory with `cd packages/website`.
|
2020-02-28 12:52:32 +00:00
|
|
|
|
2021-07-26 17:06:15 +00:00
|
|
|
Use `yarn start` to start the development server.
|
|
|
|
|
|
|
|
Use `yarn build` to compile the application to `/public` directory.
|
2020-02-28 12:52:32 +00:00
|
|
|
|
2020-06-22 09:54:01 +00:00
|
|
|
You can use the below build parameters to customize your web application.
|
2020-02-28 12:52:32 +00:00
|
|
|
|
2021-07-26 17:06:15 +00:00
|
|
|
- development example `GATSBY_API_URL=https://siasky.dev yarn start`
|
|
|
|
- production example `GATSBY_API_URL=https://siasky.net yarn build`
|
2020-02-28 12:52:32 +00:00
|
|
|
|
2020-06-22 09:54:01 +00:00
|
|
|
List of available parameters:
|
|
|
|
|
|
|
|
- `GATSBY_API_URL`: override api url (defaults to location origin)
|
|
|
|
|
2021-03-18 13:05:42 +00:00
|
|
|
## License
|
|
|
|
|
2021-05-11 09:26:11 +00:00
|
|
|
Skynet uses a custom [License](./LICENSE.md). The Skynet License is a source code license that allows you to use, modify
|
|
|
|
and distribute the software, but you must preserve the payment mechanism in the software.
|
2021-03-18 13:05:42 +00:00
|
|
|
|
2021-05-11 09:26:11 +00:00
|
|
|
For the purposes of complying with our code license, you can use the following Siacoin address:
|
2021-03-18 13:05:42 +00:00
|
|
|
|
|
|
|
`fb6c9320bc7e01fbb9cd8d8c3caaa371386928793c736837832e634aaaa484650a3177d6714a`
|
|
|
|
|
2021-10-12 13:42:30 +00:00
|
|
|
## Running a Portal
|
2022-04-06 16:19:20 +00:00
|
|
|
For those interested in running a Webportal, head over to our developer docs [here](https://portal-docs.skynetlabs.com/) to learn more.
|
2021-04-01 13:15:37 +00:00
|
|
|
|
2020-08-27 20:34:48 +00:00
|
|
|
## Contributing
|
|
|
|
|
2020-09-22 14:46:24 +00:00
|
|
|
### Testing Your Code
|
2020-09-14 13:57:44 +00:00
|
|
|
|
2021-04-01 13:15:37 +00:00
|
|
|
Before pushing your code, you should verify that it will pass our online test suite.
|
2020-08-27 20:34:48 +00:00
|
|
|
|
2020-09-14 13:57:44 +00:00
|
|
|
**Cypress Tests**
|
2020-08-27 20:34:48 +00:00
|
|
|
Verify the Cypress test suite by doing the following:
|
2020-09-14 13:57:44 +00:00
|
|
|
|
2021-07-26 17:06:15 +00:00
|
|
|
1. In one terminal screen run `GATSBY_API_URL=https://siasky.net website serve`
|
|
|
|
1. In a second terminal screen run `yarn cypress run`
|
2020-08-27 20:34:48 +00:00
|
|
|
|