Create Database named urlshortner
from MYSQL console.
- Clone this repository
- Enter the shell by typing
$ pipenv shell
- Install dependencies by typing
$ pipenv install
- Complete the steps mentioned in Environment variables section
- Run migrations
$ python manage.py migrate
- Run local server
$ python manage.py runserver
- Create file
.env
insideurl_shortner
directory - Copy contents from
.env.example
file and paste it in the.env
file you just created. - After copying the contents, edit the
SECRET_KEY
,DATABASE_USER
,DATABASE_NAME
andDATABASE_PASSWORD
with your respective key, user, database_name and password.