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/packages/dashboard-v2
Michał Leszczyk 599bdc1338
Dashboard V2: Fix extraneous tiers on /payments screen
2022-05-24 18:58:12 +02:00
..
.storybook chore(dashboard-v2): add storybook-addon-gatsby 2022-02-26 13:47:58 +01:00
src Dashboard V2: Fix extraneous tiers on /payments screen 2022-05-24 18:58:12 +02:00
static feat(dashboard-v2): add platform-specific favicons 2022-04-15 16:19:29 +02:00
.eslintignore ops(dashboard-v2): setup Storybook 2022-02-18 09:18:41 +01:00
.eslintrc.js style(dashboard-v2): prettify 2022-02-18 09:20:47 +01:00
.gitignore ops(dashboard-v2): setup Storybook 2022-02-18 09:18:41 +01:00
.prettierignore ops(dashboard-v2): setup Storybook 2022-02-18 09:18:41 +01:00
.prettierrc.json style(dashboard-v2): update prettier config 2022-02-18 09:17:28 +01:00
Dockerfile Fix dashboard-v2 Dockerfile context (#2051) 2022-04-26 16:39:35 +02:00
README.md ops(dashboard-v2): improve local developer experience 2022-04-12 12:55:09 +02:00
gatsby-browser.js feat(dashboard-v2): add Stripe integration 2022-04-15 16:19:29 +02:00
gatsby-config.js Dashboard v2 - fixes + publishing under /v2 path (#2008) 2022-04-19 13:16:57 +02:00
gatsby-ssr.js feat(dashboard-v2): add Stripe integration 2022-04-15 16:19:29 +02:00
package.json Dashboard v2 - fixes + publishing under /v2 path (#2008) 2022-04-19 13:16:57 +02:00
postcss.config.js style(dashboard-v2): prettify 2022-02-18 09:20:47 +01:00
tailwind.config.js feat(dashboard-v2): add sharing features, pagination and mobile view for /files page 2022-04-15 20:58:44 +02:00
yarn.lock feat(dashboard-v2): add Stripe integration 2022-04-15 16:19:29 +02:00

README.md

Skynet Account Dashboard

Code behind account.skynetpro.net

Development

This is a Gatsby application. To run it locally, all you need is:

  • yarn install
  • yarn start

Accessing remote APIs

To have a fully functioning local environment, you'll need to make the browser believe you're actually on the same domain as a working API (i.e. a remote dev or production server) -- otherwise the browser will block the session cookie. To do the trick, configure proper environment variables in the .env.development file. This file allows to easily control which domain name you want to use locally and which API you'd like to access.

Example:

GATSBY_PORTAL_DOMAIN=skynetfree.net # Use skynetfree.net APIs
GATSBY_HOST=local.skynetfree.net # Address of your local build

It's recommended to keep the 2LD the same, so any cookies dispatched by the API work without issues.

With the file configured, run yarn develop:secure -- it will run gatsby develop with --https -p=443 options. If you're on macOS, you may need to sudo the command to successfully bind to port 443 (https).

Gatsby will automatically add a proper entry to your /etc/hosts file and clean it up when process exits.