Coding test for Futurice. Requirements: Create an App or Web serive Use Github's API (REST or Graphql).
I first got the idea to search on a specifc user name to see their repositories. After looking through the documentation I saw the possiblity to make it more like a "social" app. The GitHub API gave the possibility to get info for a specific user who they are following and their followers. This is just an early stage and has many possibilites, for example user authentication, chat, or reuse the backend for a mobile application.
I took a litte bit longer then expected on this assignment cause I was having a blast creating it.
git clone https://github.com/code-crow1337/Github-Social.gitin your terminal.- Do a
npm installin root of the project as well/serverdirectory. - Create an
.envfile in theserverdirectory - I choosed to authenticate with the Github Api with a so called Personal Token :
Click on your profile to your right >Settings>Developer Settings>Personal Access Tokens>Genereate new token> Check forRepo> Click onGenereate token. - Copy your newly generated
Access tokeninto.env - Your
.envfile should have these contents in it:
PORT={number} PERSONAL_TOKEN={your personal token} - To start the server do a
npm startin/serverdirectory andnpm startin the root of the project .
- Login via github to see your personal data right away.
- Then a user is clicked, take the value and to a re-search.
- A CTA BTN on search to make it more userfriendly then with 1500ms seconds for possible changes and then fire it to the backend.
- Using the "Git clone" btn to copy a git clone link to the clipboard.
- Using more of the Github API data to present and consume the information.
- Navigation.
- Try to use the Graphql version of the Github API for learning purposes.
- Refactor code for more scalability as well readability.
- Some styling refactoring to make a more beautiful App.
