- π€ 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
π― Recommendation : If you are using Windows kindly learn about WSL
π§ Follow all these step from Prerequisite to Running this Project:
π Prerequisite
-
- alternativeβ- Pyenv
-
Install ποΈ PostgreSQL
ποΈ PostgreSQL setup :
Setting up for first time user on linux :
- 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>
-
-
Getting ready:
$ git clone https://github.com/ogdhruv/hirethemv2.git $ cd hirethemv2 $ virtualenv .venv $ source .venv/bin/activate $ pip install -r requirements/local.txt
-
Migrate the migrations to Postgres database:
$ python manage.py migrate
-
Running the project:
$ python manage.py runserver
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.
-
Go to
config/settings/base.py
-
On line
272
, changeACCOUNT_EMAIL_VERIFICATION
from"none"
to"mendatory"
-
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.
- 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.
- Install latest MailHog release for your OS or Ubuntu
πΆβπ«οΈ 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.