- Node.js 16 and up
- Mysql
- Redis
Clone the repository and install node packages
git clone https://github.com/adrian-azu/github-api-challenge.git
cd github-api-challenge
npm install
Create an ENV file and Setup config variables
// with git bash/linux/macOs
cp .env.example .env
To generate a github token you can follow the link below and select user for the scope:
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
Create Database and migrate Table using sequelize cli
Create Database
Migrate table
Try requesting with postman http://locahost:3000/test to see the response
docker-compose up --build -d
Parameter |
Type |
Description |
name |
string |
Required. |
email |
string |
Required. |
password |
string |
Required. |
Parameter |
Type |
Description |
email |
string |
Required. |
password |
string |
Required. |
Challenge 1: Github Usernames
POST /challenge/usernames
HEADERS |
Type |
Description |
Authorization |
Bearer |
Required User Authentication Token |
Parameter |
Type |
Description |
usernames |
array |
Required. |
Bonus Challenge: Hamming Distance
HEADERS |
Type |
Description |
Authorization |
Bearer |
Required User Authentication Token |
Parameter |
Type |
Description |
x |
number |
Required. |
y |
number |
Required. |
- Node.js
- Express
- Mysql
- Redis