Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florianporada/moovel_testme
https://github.com/florianporada/moovel_testme
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/florianporada/moovel_testme
- Owner: florianporada
- License: mit
- Created: 2017-09-13T12:53:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T11:19:07.000Z (over 7 years ago)
- Last Synced: 2024-11-30T07:31:46.028Z (2 months ago)
- Language: JavaScript
- Size: 218 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# the task from moovel.
in order to know if my code is good enough, the moovel dev team gave me the task to get data from __GitHub__ via a (__nodejs__) backend and publishes it to an frontend which will be implemented via __react native__.
hi *moovel*.
By using `npm install && npm start` the backend service will be started.
Alternatively you can use `docker build .` to create a docker container and run it.
Rename `config.sample.js` to `config.js` and fill in your credentials from GitHub. Otherwise you are limited to 60 api calls.
With `http://localhost:8080/api/` you can get an overview over the api endpoints.
The developed API makes by default 10 calls to the GitHub API to fetch the details for each user individually.
The standard GitHub API call (e.g. `https://api.github.com/search/users?q=tom+repos:%3E42+followers:%3E1000`) doesn't give you properties like `created_at`, `email` or `blog`.Therefore I implemented a function that calls the `https://api.github.com/users/` for every user and sends it combined to the client.
`http://localhost:8080/` provides a very basic frontend to test the API in the browser.