Skip to content

izudada/matrix_blog

Repository files navigation

A Completed Matrix Internship Blog Task

Features Include:

  • A register page, a user can regsiter, login read, like, dislike, comment and logout.

  • Heroku live project. Link at here

Setup

The first thing to do is to clone the repository:

$ git clone https://github.com/izudada/zuri_blog.git

Create a virtual environment to install dependencies and activate it use the link below first to install pipenv:

https://pypi.org/project/pipenv/

then to activate a virtual enviroment:

$ pipenv shell

Then install the dependencies:

(env)$ pip install -r requirements.txt

Note the (folder_name) in front of the prompt. This indicates that this terminal session operates in a virtual environment set up by pipenv using your folder or root directory name.

Database

In source folder locate the settings.py file, change the database section or variable with the code below to create your local db.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'db.sqlite3',
    }
}

The above will create a local db for you immediately you run django server.

Use migrate command to effect database model:

(folder_name)$ python manage.py migrate

Once pip has finished downloading the dependencies:

(folder_name)$ python manage.py runserver

And navigate to http://127.0.0.1:8000/.

Tests

To run the tests, cd into the directory or make sure you are in the same directory where manage.py is:

(folder_name)$ python manage.py test blog

About

A blog capstone project for matrix internship

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published