We needed an easy, fast & reliable system
to visualize who
is joining
the @dwyl
community
and track growth over time. π
The start-here > who
section is was woefully out of date
because we had to update it manually. β³
(this was
noted
a while back...
but sadly was not made
a priority at the time...)
This mini-app/project is designed
to scratch our own itch
and save us
time.
There are two ways of discovering the list of people contributing to the dwyl mission:
Visit
github.com/orgs/dwyl/people
you can see a list of people
who are members of the Org.
Simple. effective. incomplete.
This list only scratches the surface!
Read the Commit History for all the dwyl repos on GitHub
and extract the names of people ...
As you can imagine,
this second option
is painful to do manually ... β³
So we had to create a mini-App
to do it for us
via the GitHub
API! π‘
We built this mini-App
using the
PETAL
Stack
because we feel
it's the fastest
and most effective way
to ship a web app.
If you want to understand every step
of the process of building the mini-app,
read:
BUILDIT.md
Note: You will need to have
Elixir
andPostgres
installed,
see: learn-elixir#installation and learn-postgresql#installation respectively.
Tip: check the prerequisites in: /phoenix-chat-example
On your localhost
,
run the following commands
in your terminal:
git clone git@github.com:dwyl/who.git && cd who
mix setup
That will download the code
,
install dependencies
and create the necessary database + tables.
Next you need to do 1 minute
of setup. β±οΈ
Create an .env
file by copying the sample:
cp .env_sample .env
Paste the value of your
loads the environment variables required to run the App.
To access the GitHub
API,
you will need to generate a
Personal Access Token:
github.com/settings/tokens
Click on the Generate new token
button.
Name it something memorable.
Once you've created the token,
copy it to your clipboard for the next step.
Add your token after the =
sign:
export GH_PERSONAL_ACCESS_TOKEN=
Once you've saved your .env
file,
run:
source .env
Once you have sourced your .env
file,
you can run the app with:
mix s
Open the App in your web browser
localhost:4000
and start your tour!
All contributions from typo fixes to feature requests are always welcome! π
Please start by:
a. Star the repo on GitHub
so you have a "bookmark" you can return to. β
b. Fork the repo
so you have a copy you can "hack" on. π΄
c. Clone the repo to your localhost
and run it! π©βπ»
For more detail on contributing, please see: dwyl/contributing
If you have feature ideas, that's great! π
Please share:
who/issues π
-
List Repos in the Org: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories
-
List of people that Star a given repo: