Skip to content

Codingplace42/Clicky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This project provides some basic realtime usecases based on Django & Django Channels. Currently two main usecases are included:

  1. World Wide Realtime Click Counter
  2. Google Note Clone Lite (Realtime Synchronization for world wide users)

The Tech-Stack is based on Python, Django, Postgres and Redis. This repository includes also a Dockerfile and a docker composition for easy kick-starts.

Have fun & Play around.

Requirements & Setup

There are two setup possibilities included:

  • local setup
  • docker setup (recommended)

General Setup You will need following steps, doesn't matter if you gonna use this setup in local requirements or containerized:

  1. Clone this repository
git clone https://github.com/Codingplace42/Clicky.git
  1. Init submodule
git submodule init
  1. Update Submodule (this will pull the used SB-Admin-2 Repository for Frontend)
git submodule update
  1. Create .env File by copying the example file:
cp clicky/.env.example clicky/.env

Change the values inside of that file depends on the setup what you want to use.

Local Requirements & Setup

  • Python v. 3.6 or higher is required
  • PostgresQL Database (optional - alternative: Change DB Settings to Sqlite)
  • Redis
  1. Install Requirements
pip install -r requirements.txt

Note: A virtual environment is recommended here

  1. Migrate the database
python manage.py migrate

Note: Make sure that correct parameters in your .env file are set

  1. Start Server
python manage.py runserver

Docker Requirements & Setup

  • Docker
  • Docker Compose
  1. Start docker composition
docker-compose up

Note: Make sure that correct parameters in your .env file are set

About The Docker Setup Services for Postgres, Redis and Nginx are included in the docker-composition. Make sure that you've used the correct ports in your .env file for being able to communicate between services.

Cheat For local development I do recommend to start redis and postgres via docker setup and run the django project separate in local configuration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published