-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94722fc
commit 6b33f0d
Showing
2 changed files
with
15 additions
and
37 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,28 @@ | ||
# nativedwebhosting | ||
**nativedwebhosting** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli). | ||
# Native Website Hosting on Blockchain | ||
Part of 100 builders | ||
## The Current State. | ||
The major focus of decentralisation using blockchain technology was on the backend, or infrastructure side of things, especially with smart contracts and decentralised applications (DApps) on blockchains like polygon,eth,atom,etc. | ||
|
||
## Get started | ||
|
||
``` | ||
ignite chain serve | ||
``` | ||
The frontend of many DApps and blockchain platforms is still centralized. For a truly decentralised application, both the backend and frontend should be decentralised. | ||
|
||
### Configure | ||
|
||
Your blockchain in development can be configured with `config.yml`. To learn more, see the [Ignite CLI docs](https://docs.ignite.com). | ||
## The Proposal | ||
The objective of this is an attempt to host frontend websites directly from the blockchain nodes. Using the existing power of the Comos-SDK to create a sovereign blockchain,allowing to create and use custom tx and messages, enabling the seamless hosting of websites built intrinsically on the blockchain network. | ||
|
||
### Web Frontend | ||
Create a Custom Blockchain that can host website from transaction | ||
|
||
Ignite CLI has scaffolded a Vue.js-based web app in the `vue` directory. Run the following commands to install dependencies and start the app: | ||
|
||
``` | ||
cd vue | ||
npm install | ||
npm run serve | ||
``` | ||
|
||
The frontend app is built using the `@starport/vue` and `@starport/vuex` packages. For details, see the [monorepo for Ignite front-end development](https://github.com/ignite/web). | ||
### How it will be when its built? | ||
- Whatever front-end project you have compile and build. make sure you are able to run the build | ||
- Name the folder , and create a tx from the cli using giving path to the build, | ||
- Note the tx hash , and go to node's endpoint /{tx hash}.Website is hosted itself from the blockchain node. | ||
|
||
## Release | ||
To release a new version of your blockchain, create and push a new tag with `v` prefix. A new draft release with the configured targets will be created. | ||
|
||
``` | ||
git tag v0.1 | ||
git push origin v0.1 | ||
``` | ||
--- | ||
|
||
After a draft release is created, make your final changes from the release page and publish it. | ||
<img src="diagrams/d1.png" style="width: '600px' height: '400px'"> | ||
|
||
### Install | ||
To install the latest version of your blockchain node's binary, execute the following command on your machine: | ||
--- | ||
|
||
``` | ||
curl https://get.ignite.com/apoorv-2204/Native-DWeb-Hosting@latest! | sudo bash | ||
``` | ||
`apoorv-2204/Native-DWeb-Hosting` should match the `username` and `repo_name` of the Github repository to which the source code was pushed. Learn more about [the install process](https://github.com/allinbits/starport-installer). | ||
|
||
## Learn more | ||
|
||
- [Ignite CLI](https://ignite.com/cli) | ||
- [Tutorials](https://docs.ignite.com/guide) | ||
- [Ignite CLI docs](https://docs.ignite.com) | ||
- [Cosmos SDK docs](https://docs.cosmos.network) | ||
- [Developer Chat](https://discord.gg/ignite) |