ogdhruv / hirethemv2

A Django based web application for placement teachers and their students.

Home Page:https://hirethemv2.onrender.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hire Them πŸ§‘β€πŸ’»

A web app to help colleges and their students.

πŸ§ͺ Trying the deployed version: Register as a new user.

🚧 The application is not mobile responsive right now. 🚧

Made with :

Python Django Bootstrap PostgrSQL

Black code style

OS used :

Ubuntu

🌼 Features

  • πŸ‘€ Custom User Model Authentication
  • πŸ“¨ Integration with MailHog for local email testing
  • πŸ‘₯ A User Profile UI
  • πŸ’Ό A Job Portal interface
  • πŸ’¬ Room for Messaging or Chatting
  • 🧭 A fine and easy to understand frontend
  • πŸ—„οΈ Uses PostgreSQL database

πŸ“€ Installation!

πŸ’― Recommendation : If you are using Windows kindly learn about WSL

🧭 Follow all these step from Prerequisite to Running this Project:

πŸ“– Prerequisite
πŸ—„οΈ PostgreSQL setup :

πŸ—„οΈ PostgreSQL setup :

Setting up for first time user on linux :

[click here ->]

  • if getting ☣️ ERROR like - Peer authentication failed for user "postgres" (SOLUTION)

if you have already have used postgres, then just create database with project name:

        $ createdb --username=postgres hirethemv2
  • βœ… Important:

    • Either add this export:

        export DATABASE_URL=postgres://postgres:<password>@127.0.0.1:5432/<DB name given to createdb>
      

      in bashrc or zshrc or Enviornment variable.

    • or else add:

        export DJANGO_READ_DOT_ENV_FILE=True
      

      in bashrc or zshrc or Enviornment variable.Then you can create a .env file in root directory and add values there which is easy.

      First value to add in .env file is,

        export DATABASE_URL=postgres://postgres:<password>@127.0.0.1:5432/<DB name given to createdb>
      

πŸ‘¨β€πŸ”§ Running this Project

  1. Getting ready:

     $ git clone https://github.com/ogdhruv/hirethemv2.git
     $ cd hirethemv2
     $ virtualenv .venv
     $ source .venv/bin/activate
     $ pip install -r requirements/local.txt
    
  2. Migrate the migrations to Postgres database:

     $ python manage.py migrate
    
  3. Running the project:

     $ python manage.py runserver
    

πŸ“§ Using Email Backend

I have a user email verfication system in this project.

Right now it is set to "none" so you have to make it mendatory to use it.

  1. Go to config/settings/base.py

  2. On line 272, change ACCOUNT_EMAIL_VERIFICATION from "none" to "mendatory"

  3. In development, you use email catching tool for receiving email because you do have any SMTP service(like mailgun). so we use an offline tool know as MailHog.

    Setting up MailHog:

    • Install latest MailHog release for your OS or Ubuntu
    • Run $ ~/go/bin/MailHog or else where you have go folder in the terminal.
    • Go to http://127.0.0.1:8025/ and check for emails when you create a user.

☁️ Testing Live

πŸ˜Άβ€πŸŒ«οΈ Few things to keep in mind

  • Images may not appear on live becuase of disk space provided by render
  • Web app is not mobile friendly at this time.

πŸ“š Refrences and Books :

πŸ›ΈDeployment

About

A Django based web application for placement teachers and their students.

https://hirethemv2.onrender.com

License:MIT License


Languages

Language:Python 61.0%Language:HTML 35.5%Language:Shell 2.7%Language:CSS 0.8%Language:JavaScript 0.0%