This project is the basis for a workshop built around consuming decentralized APIs made available by Skynet Kernel modules.
Specifically, it builds on the skynet-dacs-library
to call Kernel modules using a library which abstracts the Kernel interaction. It is used to add social functionality to decentralized webapps. See: npm, github, and documentation.
The repo contains the code for both mock data and a functional application for doing the following:
- Authenticate with Skynet Kernel, then get user's public userId using the Identity DAC
- Get your public user profile using the Profile DAC
- Follow a group of user by adding them to your friend list, using the Social DAC
- Add a post to your feed, with application specific metadata using the Feed DAC
- Read the posts of other hackers, also using the Feed DAC
The style of this app focuses on isolating API logic from UI logic and creaing a functioning app with minimal complexity beyond Create React App knowledge.
For more information on Skynet Kernel, see its repo or its temporary documentation. If you want to build a Kernel Module, see this workshop.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.