https://github.com/numtel/newgeocities
Publish websites on the blockchain
https://github.com/numtel/newgeocities
blockchain hosting
Last synced: about 1 year ago
JSON representation
Publish websites on the blockchain
- Host: GitHub
- URL: https://github.com/numtel/newgeocities
- Owner: numtel
- Created: 2022-07-18T06:38:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T22:01:06.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T04:42:38.597Z (about 1 year ago)
- Topics: blockchain, hosting
- Language: JavaScript
- Homepage: https://newgeocities.com/
- Size: 1.74 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# newgeocities
Pronounced `newg-eoc-ities` :wink:
## Installation
```
$ git clone https://github.com/numtel/newgeocities.git
$ cd newgeocities
$ npm install
```
If you would like to run the contracts on your local machine, download the `solc` compiler. This is used instead of `solc-js` because it is much faster. Binaries for other systems can be found in the [Ethereum foundation repository](https://github.com/ethereum/solc-bin/).
```
$ curl -o solc https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.15+commit.e14f2714
$ chmod +x solc
```
## Development Frontend
There's no build steps. You could start the frontend just as well by starting any HTTP server on the `rsc` directory without even installing any NPM packages.
Start the development frontend server, connecting to the contracts on Optimism using the settings in `src/config.json` with the following command:
```
$ npm run dev
```
## Development Chain
The development chain script runs Ganache on port 8545 as well deploying the contracts.
It also deploys the relevant factory contracts to the development chain and outputs their addresses to `build/config.json` for consumption by the frontend. For the frontend to read this file, the other configuration file at `src/config.json` must be removed.
```
# Contracts must be built before running the development chain
$ npm run build-dev
$ npm run dev-chain
```
## License
MIT