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.
2022-02-15 09:04:19 +00:00
# Skynet Account Dashboard
Code behind [account.skynetpro.net ](https://account.skynetpro.net/ )
## Development
2022-02-17 11:16:21 +00:00
2022-02-15 09:04:19 +00:00
This is a Gatsby application. To run it locally, all you need is:
2022-02-17 11:16:21 +00:00
- `yarn install`
- `yarn start`
2022-03-23 10:30:19 +00:00
## Accessing remote APIs
2022-03-24 14:47:35 +00:00
To be able to log in on a local environment with your production credentials, you'll need to make the browser believe you're actually on the same domain, otherwise the browser will block the session cookie.
2022-03-23 10:30:19 +00:00
To do the trick, edit your `/etc/hosts` file and add a record like this:
```
127.0.0.1 local.skynetpro.net
```
2022-03-24 14:47:35 +00:00
then run `yarn develop:secure` -- it will run `gatsby develop` with `--https --host=local.skynetpro.net -p=443` options.
2022-03-23 10:30:19 +00:00
If you're on macOS, you may need to `sudo` the command to successfully bind to port `443` .
> **NOTE:** This should become easier once we have a docker image for the new dashboard.