Coder Social home page Coder Social logo

baivaru / contactsbook Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 97 KB

Interface for Google Contacts with options for assign users who could access the application to update/amend/insert/delete the contacts respectively. And assign permissions accordingly for users who can edit and only view the contacts.

Python 28.22% HTML 44.91% JavaScript 26.87%
aiohttp aiohttp-jinja wsrpc-aiohttp google-people-api tinydb passlib bootstrap4

contactsbook's Introduction

ContactsBook:

Let me start by saying I am not a web developer. Anyway do not forget the fact once a wise man said "No matter how bad you are, you are not useless. You can still be used as a bad example." Now its upon you to decide to go through this project or not.

I was tasked with creating a central managed address book that can be accessed via web, so I came up with this idea of creating an interface for Google Contacts as the client did want to assign users who could use the system to update/amend/insert/delete the contacts respectively. And assign permissions accordingly for users who can edit and only view the contacts.

Now you would be asking me why not use Google Contacts directly? Simple answer they do not have GSuits i.e. they cannot delegate access to others.

Important libraries used by the application and what they do:

The application makes use of aiohttp as a web server i.e. aiohttp_jinja2 to render html templates. The web application also makes use jQuery and JavaScript to deal with a lot of dynamic fetching/loading of data from server, for such client to server communications it makes use of wsrpc-aiohttp. The server fetches data from Google People API therefore none of contact data are saved locally on the host. It also uses TinyDB to store the details of users who has access to the application. Passwords are not saved on the DB but the password hash - to generate password hash it makes use of passlib.

Cloning & Run:

  1. git clone https://github.com/eyaadh/contactsBook.git, to clone and the repository.
  2. cd contactsBook/, to enter the directory.
  3. pip3 install -r requirements.txt, to install dependencies/requirements.
  4. Create a google developer project and enable Google People API. Also add https://www.googleapis.com/auth/contacts to Scopes.

More details on Google People API and how to create a project can be found here here.

  1. download OAuth Client ID file and place at contactsBook/book/working_dir/credentials.json

More details on OAuth 2.0 to Access Goole API can be found here.

  1. Run with python3.8 -m book, stop with CTRL+C.
  2. Finally to access the web interface browse to http://localhost:8080.
Default Credentials:
Username: admin
Password: password

Username: user
Password: password1

contactsbook's People

Contributors

dependabot[bot] avatar eyaadh avatar phoenixatom avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.