Giter VIP home page Giter VIP logo

google-docs-online's Introduction

Navigus Assignment

Link to deployed demo: https://navigus-assignment-prateek.herokuapp.com/

Steps to run the Application locally:

Dependencies required:

  • Python3.8
  • Redis
Steps:

Make sure you have the dependencies mentioned above installed before proceeding further.

  • Step 0 - Clone the repository and cd into the directory.
git clone [email protected]:prateekj117/navigus_assignment.git
cd navigus_assignment
  • Step 1 - Create virtualenv and Install Python Dependencies.
virtualenv -p python3.8 venv
. venv/bin/activate
python -m pip install -r requirements.txt
  • Step 2 - Run Migrations and Create Super User.
python manage.py migarte
python manage.py createsuperuser
  • Step 3 - Copy environment variables.
cp navigus_assignment/.env.example navigus_assignment/.env
  • Step 4 - Run Server.
python manage.py runserver
  • Run Unit Tests:
python manage.py collectstatic
python manage.py test

Requirements explained and Methodology:

  • Created both the backend and Frontend of the Application.
  • Created basic user registration and authentication system.
  • Created UI similar to the one shown in the Assignment pdf to show the users viewing that docs. For this, I used Django Channels along with Redis and django-channels-presence library. Everything is asynchronously updated. I also used logic for Heartbeats to make sure last_seen of users gets updated. To handle cases when server restarts and there are old entries in Presence Table, I also configured a Celery Task, to make sure that stale connections no longer exists. The presence page can only be accessed by Registered Users as was said in the aassignment. If unauthenticated users try to visit this page, they are redirected to Home Page.
  • When you hover over the avatar, you can see the user info.
  • Wrote some basic unit tests. Can be found in navigus_assignment/tests
  • Also made a Dockerfile for the project for easy setup
  • Deployed the app on Heroku. You can register an account, and then register another account in incognito, and keep an eye on UI.

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.