A blog application that allows an author to write and publish articles for the public readers.
- Creating, reading, updating and deleting articles by an admin user.
- Viewing and reading articles by public users.
-
Check that python 3 is installed
python --v >> Python 3.6.5
-
Install virtualenv
pip install virtualenv
-
Create a virtual environment
virtualenv env source env\bin\activate
-
Install python requirements
pip install -r requirements.txt
-
Make a copy of
.env.sample
file and rename it to.env
and replace the variables with your postgres database credentials i.eDB_USER=your-database-user DB_PASSWORD=your-database-user-password DB_NAME=your-database-name DB_HOST=your-host PORT=5432 SECRET_KEY=your-secret-key
then run
source .env
-
Run the migrations
python ./manage.py migrate
-
Create an admin user
python ./manage.py createsuperuser
-
Run the application
python ./manage.py runserver
-
Login into the application
localhost:8000/admin
using the credentials created above then create some categories and articles respectively to try out the application
- To run tests use the command `
- coverage run ./manage.py test - coverage report
- Visit the live application here
The project is licensed under MIT License.