- Website: https://cosmic.link
- Sources: https://github.com/cosmic-plus/webapp-cosmic-link
- Build: https://github.com/cosmic-plus/https-cosmic-link
- Roadmap: https://github.com/cosmic-plus/webapp-cosmic-link/TODO.md
The website is served directly from the GitHub repository, thanks to CloudFlare CDN. More precisely, what is served is the HEAD of the master branch of the build repository.
This web application have a unique property: anybody can check that the website
https://cosmic.link is indeed built from the last sources. It
requires git, npm and sh:
git clone https://github.com/cosmic-plus/webapp-cosmic-link cd webapp-cosmic-link npm run check
The last command will replay the application build and compare the result with what is currently served on the web. If any file differ, it will tell about them and this means that what is served is not what it is supposed to be. If nothing differ, then the integrity check pass and you'll see the following message:
nothing to commit, working directory clean
Run a copy of the Cosmic.Link website
You can run this website locally, or run your own fork on the web quite easily. This ensure the CosmicLink protocol doesn't stay under its creator control and can spread around in a decentralized manner.
Run it locally 1 (download)
You can get an archive of the website at: https://github.com/cosmic-plus/https-cosmic-link/archive/master.zip
Some browsers will accept to
index.html like this (like Firefox), some other
won't (like Chrome).
Run it locally 2 (git, npm & live-server)
If you have git and npm, you can serve the website locally:
git clone https://github.com/cosmic-plus/https-cosmic-link cd https-cosmic-link npm install --global live-server live-server
The website should be available at http://127.0.0.1:8080. If you want to use it with your Ledger Wallet, you'll need to serve the website over a local https layer. To do so:
npm install --global live-server-https live-server --https=/usr/local/lib/node_modules/live-server-https
Serve it on the web
You can serve your own clone of the Cosmic.Link website on Github simply by
https://github.com/cosmic-plus/https-cosmic-link repository. Then
go to the repository settings and under
GitHub Pages select
Source. Your clone will be available at:
You can serve it over your own by tweaking the
CNAME file and making your
domain point to
You can then use it to link Stellar transactions from static documents, social medias and your websites.
If you only want to change the way the website display, you can edit the files
main.css of the build repository.
git clone https://github.com/cosmic-plus/webapp-cosmic-link cd webapp-cosmic-link npm install npm run get npm run serve
src/ directory will be
pushed to the website automatically. The changes to the HTML and CSS files in
src/ directory have to be manually pushed using:
npm build-html npm build-css
Remember that the source repository contains the build repository as a submodule
web/. All you'll have to do to publish your modified version of the website
is to push this submodule to your own GitHub repository.
To pack the production version:
npm run format npm run build
Check build integrity
The git status should show no modified files after running:
npm run check