branchpage
branchpage copied to clipboard
A blogging platform integrated with GitHub.
BranchPage
A platform for deploying blogs using
.md
files on GitHub.
โ Features
- Totally free. :money_with_wings:
- Blog can be created in seconds :fast_forward:
- You content is always safe on github :octocat:
- Readers can contribute to your posts :hammer:
- Donation links available through your blog (Coming soon.) :moneybag:
And much more features coming :grin:
๐ Installation and execution
- Clone this repository and go to the directory;
- Create a .env file with the following variables
-
GITHUB_API_TOKEN
- Create a personal access token (no scope needed); -
GITHUB_OAUTH_CLIENT_ID
andGITHUB_OAUTH_CLIENT_SECRET
- Create an OAuth application with homepage urlhttp://127.0.0.1:4000
and callbackhttp://127.0.0.1:4000/auth/github/callback
.
-
๐ฆ๏ธ Running for the first time
- Run
docker-compose build
; - Install mix dependencies
docker-compose run --rm web mix deps.get
; - Create database
docker-compose run --rm web mix ecto.create
; - Run the migrations
docker-compose run --rm web mix ecto.migrate
; - Install npm dependencies
docker-compose run --rm web npm install --prefix apps/web/assets
;
๐ง Development
- Run
docker-compose up
; - Access localhost:4000;
๐งช Tests
- Run
docker-compose run --rm web mix ci
;
๐ค How to contribute
- Fork this repository;
- Create a branch with your feature:
git checkout -b my-feature
; - Commit your changes:
git commit -m 'My new feature'
; - Push to your branch:
git push origin my-feature
.
After the merge of your pull request is done, you can delete your branch.