2020-07-02 14:04:03 +03:00
|
|
|
# Slate (WIP)
|
2020-07-01 03:31:48 +03:00
|
|
|
|
2020-07-03 19:56:02 +03:00
|
|
|
- (WIP) Cross platform OSS.
|
|
|
|
- (WIP) Amazon S3 replacement.
|
|
|
|
- (WIP) Aims to have every feature the [Filecoin Network](https://filecoin.io) supports.
|
|
|
|
- (WIP) Great for storing images and sharing high resolution photos with friends.
|
2020-07-03 19:58:40 +03:00
|
|
|
- [Design system](https://slate.host/system) -> [Release repository](https://github.com/filecoin-project/slate-react-system).
|
2020-02-19 09:30:47 +03:00
|
|
|
|
2020-06-17 10:44:20 +03:00
|
|
|
#### Current prototype (June 15th, 2020)
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-06-17 10:44:20 +03:00
|
|
|
![screenshot](https://user-images.githubusercontent.com/310223/84873452-1c704b80-b038-11ea-8398-4a73c4d9850e.png)
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-07-01 03:31:48 +03:00
|
|
|
## Developer Introduction
|
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
### Run locally (MacOS)
|
2020-06-17 10:44:20 +03:00
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
- DevNet and Powergate are not required if you just want to work on the [design system](https://slate.host/system).
|
2020-06-17 10:44:20 +03:00
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
#### Satisfy dependency requirements
|
2020-04-09 00:29:13 +03:00
|
|
|
|
|
|
|
- Make sure you have [homebrew](https://brew.sh/).
|
|
|
|
- Make sure you run `xcode-select -p`, if the command does not return a response, run `xcode-select --install`.
|
|
|
|
- Make sure you run `brew install node`.
|
|
|
|
- Make sure you run `brew install go`.
|
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
#### Setup Docker
|
2020-04-09 00:29:13 +03:00
|
|
|
|
|
|
|
- `brew install docker`.
|
|
|
|
- Install [Docker for Desktop](https://www.docker.com/products/docker-desktop) if you are running MacOS.
|
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
#### Setup Lotus DevNet and Powergate
|
2020-04-09 00:29:13 +03:00
|
|
|
|
|
|
|
- Clone the [Lotus DevNet](https://github.com/textileio/lotus-devnet) repository.
|
|
|
|
- Run `docker run --name texdevnet -e TEXLOTUSDEVNESPEED=1500 -p 1234:7777 textile/lotus-devnet`.
|
|
|
|
- Clone [Powergate](https://github.com/textileio/powergate/).
|
2020-06-17 10:44:20 +03:00
|
|
|
- Follow the instructions and run the commands in the README.md file:
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-06-17 10:44:20 +03:00
|
|
|
```sh
|
|
|
|
cd docker
|
2020-07-02 20:15:37 +03:00
|
|
|
make localnet
|
2020-06-17 10:44:20 +03:00
|
|
|
```
|
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
### Install and run
|
|
|
|
|
|
|
|
Run these commands to start the client locally.
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
- **Note** — There might be a small delay between Powergate and Lotus.
|
2020-04-09 00:29:13 +03:00
|
|
|
|
|
|
|
```sh
|
2020-06-29 06:06:58 +03:00
|
|
|
git clone git@github.com:filecoin-project/slate.git
|
|
|
|
cd slate
|
2020-04-09 00:29:13 +03:00
|
|
|
npm install
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
2020-07-02 14:04:03 +03:00
|
|
|
### Example of what to expect
|
2020-06-17 10:44:20 +03:00
|
|
|
|
|
|
|
![screenshot](https://user-images.githubusercontent.com/310223/84878302-7d028700-b03e-11ea-82c4-c53dca9d7e65.png)
|
|
|
|
|
|
|
|
- Visit `localhost:1337` in the browser.
|
2020-06-24 22:57:09 +03:00
|
|
|
- If you see the design system page instead, that means a token was not properly generated in the `.data` folder. Run `npm run dev` again.
|
2020-07-07 03:52:35 +03:00
|
|
|
- **Note** — If you want to clear all your local files, run `npm run dev --reset-data`.
|
2020-06-17 10:44:20 +03:00
|
|
|
- **Note** — There will be new commands in the future for different contexts, like `electron`.
|
|
|
|
|
2020-07-04 03:32:26 +03:00
|
|
|
# Get involved.
|
2020-06-17 10:44:20 +03:00
|
|
|
|
|
|
|
Do you want to...
|
|
|
|
|
|
|
|
- Help us build a design system for internal use?
|
|
|
|
- Help us build out this example so every partner in the ecosystem can have example code to work with?
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-06-17 10:44:20 +03:00
|
|
|
Then...
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-06-29 06:06:58 +03:00
|
|
|
- If you see things you want to work on, [file an issue](https://github.com/filecoin-project/slate/issues)!
|
2020-06-17 10:44:20 +03:00
|
|
|
- If you see something you want to fix, **submit a PR**!
|
|
|
|
- I'm always available on Twitter to answer your questions: [@wwwjim](https://www.twitter.com/wwwjim).
|
2020-06-30 04:18:24 +03:00
|
|
|
- For any build questions feel free to reach out to Colin: <cs.mccaleb@gmail.com>
|