An open API service indexing awesome lists of open source software.

https://github.com/manu-chroma/username-availability-checker

Live at : https://username-check.herokuapp.com/
https://github.com/manu-chroma/username-availability-checker

flask-api flask-application username-checker

Last synced: 2 months ago
JSON representation

Live at : https://username-check.herokuapp.com/

Awesome Lists containing this project

README

        

# Username Availability Checker

[![Join the chat at https://gitter.im/username-availability-checker/Lobby](https://badges.gitter.im/username-availability-checker/Lobby.svg)](https://gitter.im/username-availability-checker/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Check if a username can or cannot be taken on a bunch of popular social websites (such as Twitter, Instagram, Soundcloud, Github etc.)

Try it out at: https://username-check.herokuapp.com/

## Setup

In case you want to try out project locally/contribute

### Install dependencies

Creating a virtual environment for the project is recommended.

```
pip install -r requirements.txt
pip install -r test-requirements.txt
```

### Setup config file
Copy and rename .env.copy to .env by:

- Unix or Linux:

``` bash
cp .env.copy .env
```
- Windows:

``` cmd
copy .env.copy .env
```

You can choose to edit the default config before running the project

### Running the web app

```
python username_api.py &
python frontend.py
```

To use, go to address generated by flask app in a browser.

### Running tests for flask backend

Tested on python 3.4, 3.5 and 3.6

``` bash
python -m pytest -s -v
coala --non-interactive -V
```

### Running cli script

We don't test it often, so maybe it might be broken

```
python cli.py
```

## Backend API endpoint

This endpoint is responsible for returning the username status to the frontend

- https://username-availability.herokuapp.com/check//``/``
- eg: https://username-availability.herokuapp.com/check/facebook/yolo

## Contributors

Since the inception of the project, it has on and off been in developement. It has seen minor contributions during hacktoberfest and major contributions from students during Google Codein 2017.

For the time being, the project is being maintained actively.

## License
```
© MIT
```