Giter Site home page Giter Site logo

did_django_schedule_jobs_v2's Introduction

DID_DJANGO_SCHEDULE_JOBS_V2

Hi there. This repo has a few tutorial videos that will you get up and running quickly

  1. https://youtu.be/_9MbgyUvDGs - This will walk you through how to set up the project without Docker

Local Development Setup

  1. Clone this repo git clone [email protected]:bobby-didcoding/did_django_schedule_jobs_v2.git
  2. Create your .env file from the template file cp .env.template backend/.env

Install Redis for Celery

  1. Install 'Ubuntu' and set up Redis (https://www.youtube.com/watch?v=_nFwPTHOMIY)
  2. Download Ubunto from windows store and launch app
  3. create a username (must be an email) & password
  4. Now create redis repository sudo apt-add-repository ppa:redislabs/redis
  5. Now update and upgrade packages sudo apt-get update then sudo apt-get upgrade
  6. Now install Redis sudo apt-get install redis-server

Config

  1. Create a .env file from the .env.template and fill-in the environment variables specific to your setup (eg. DB name, user and password) - Save this into /backend
  2. Set up a virtual environment cd backend && python -m venv env
  3. Activate virtual environment cd env/scripts && activate && cd ../..
  4. Install dependencies for your local environment by running pip install -r requirements/Local.txt
  5. Run python manage.py migrate

Fire up servers

  1. Open Ubuntu terminal and fire up a Redis server redis-server
  2. Open another Ubuntu and set up a Redis CLI redis-cli
  3. Open new cmd in root and use this command celery -A did_django_schedule_jobs_v2.celery beat -l INFOto fire up celery beat
  4. Open new cmd in root and use this command celery -A did_django_schedule_jobs_v2.celery worker --pool=solo -l info to fire up a celery worker
  5. Run python manage.py runserver

did_django_schedule_jobs_v2's People

Contributors

bobby-didcoding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.