github pages is a free service for deploying any kind of static site like Carbon. in this page i will descuse how to deploy your own url shortner with github pages for free.
- Fork the repo to one of your organ or your account.
- open up the the setting and change the name to what do you prefer.
in this case i will name it
goto
.
- on the setting go to
pages
section and enable pages for this repo, by click on save button.
note that you should use branch
maseter
and directoydocs
-
go to action section, and wait for depoyment. whene its done! open that work flow and click on the link. once you open the link, you should see the index page of carbon! done!
-
now you can siply add your links and just push the chnages.
-
cd goto
in this case the name is goto.
replace the
BASE_URL
in theconfig.py
with your github pages url -
run carbon
python3 carbon.py
carbon will prompt a Cli and ask you for url, title and etc. pass all the stuff and then commit themgit add . && git commit -m 'new urls added'
. and in the last step, push themgit push
you can now open the link which you just created.