Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

akshaybabloo/gollahalli-cms

Repository files navigation

Gollahalli Micro CMS

Version Codecov CI Requirements
Master codecov Build Status Updates

Deploy

Warning: Master branch is not production ready (yet) ⚠️. Use Django-Python-3, to create your website based on JSON. If you like PHP then see PHP5 branch.

TOC

Introduction

I have been sick of complicated CMS, so I set out to develop a micro-CMS. A very simple one-page website creator that supports Django Templates and GraphQL API calls.

For extra security, I have included Authy's two-factor authentication with Django's built-in user authentication system.

Portal

Portal

Running Locally (Development)

If you want to test how it works, you might want to install PostgreSQL from bigsql.org, because I have used JSON field inside the models, which will only work on PostgreSQL.

Then search for plsql and type in the following SQL query to create the user and the table

CREATE USER gollahalli WITH PASSWORD '';
CREATE DATABASE gollahalli_v3_django;
GRANT ALL PRIVILEGES ON DATABASE "gollahalli_v3_django" to gollahalli;

Once you have created the user and database, install these dependencies (Python 3.5 or 3.6)

See requirements.txt

Now, clone the repo and open your cmd or terminal. Change to the cloned directory and type in the following commands.

python managey.py makemigration
python manage.py collectstatic

Also, create a superuser by typing in

python manage.py createsuperuser

If there are no errors, then type in

python manage.py runserver

Requirements

This library heavily depends on the following services:

  1. Heroku (web deployment)
  2. Amazon AWS S3 (storage) - That's because Heroku doesnt provide storage system.
  3. Authy (Two-factor authentication)
  4. Cloudinary (Optional, for images)
  5. PostgreSQL (database)

GraphQL as an API

Content coming soon.

Template Usage

Content coming soon.

Regular Pages

Content coming soon.

Google AMP

Content coming soon.

License

Provided under MIT License.