https://github.com/teodorus-nathaniel/substrate-stackexchange
Substrate StackExchange made using subsocial blockchain
https://github.com/teodorus-nathaniel/substrate-stackexchange
Last synced: 2 months ago
JSON representation
Substrate StackExchange made using subsocial blockchain
- Host: GitHub
- URL: https://github.com/teodorus-nathaniel/substrate-stackexchange
- Owner: teodorus-nathaniel
- License: gpl-3.0
- Created: 2022-06-22T12:15:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T14:16:47.000Z (about 2 years ago)
- Last Synced: 2024-10-27T19:02:42.965Z (7 months ago)
- Language: TypeScript
- Homepage: substrate-stackexchange.vercel.app
- Size: 533 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-subsocial - GitHub
README
# Subsocial StackExchange
Made for Polkadot NA Hackaton 2022.
## Summary
This project is a forum for developers Q&A regarding substrate development.
The difference between this and current Substrate StackExchange is the fact that this one uses Subsocial SDK, making it decentralized and all the posts and interactions are saved in blockchain and IPFS.# Related Repo
Subquery Indexer for reputation system: [subsocial-subql](https://github.com/teodorus-nathaniel/subsocial-subql)
# Try it out
This project is served at [https://substrate-stackexchange.vercel.app/](https://substrate-stackexchange.vercel.app/)
The indexing service is served at [https://108.136.47.177/](https://108.136.47.177/)
Note: to enable the reputation feature, as the indexing service is served with self-signed certificate, you need to allow it in your browser by enabling [chrome://flags/#allow-insecure-localhost](chrome://flags/#allow-insecure-localhost).## How to Run
1. Setup Env Variables.
2. Run script below.```zsh
$ npm run dev
```## Env Variables
1. ANALYZE = true/false
Acts as bundle visualizer to detect large sizes in build.
2. NEXT_PUBLIC_USE_TESTNET = true/false
To toggle between mainnet and testnet RPCs
3. NEXT_PUBLIC_SPACE_ID = number
This is the `space id` used for the project. All posts are made to that specific space.
If you didn't have any space before, you can create one in /devs/space page after you run the project.
4. NEXT_PUBLIC_ADDRESS_PREFIX = number
This is the address prefix that is needed for polkadot based address. Each parachain has their own address prefix.
This prefix is what made your polkadot address in each parachain different, while having the same private key.
e.g. Subsocial has prefix of 28.