Git Product home page Git Product logo

django_projects's Introduction

Build Django projects Docker image

$ docker build -t rili/django_projects .

Start the process with Docker-compose

$ docker-compose up

Stop the process with Docker-compose

$ docker-compose down

Create retries Django app

# Make sure you're in pipenv shell by running `pipenv shell`
(django_projects) bash-3.2$ python manage.py startapp retries

# Install Postgres server, psycopg2-binary dep (in Pipenv), refer to:
https://tutorial-extensions.djangogirls.org/en/optional_postgresql_installation/

# Create database migrations
(django_projects) bash-3.2$ python manage.py makemigrations retries
(django_projects) bash-3.2$ python manage.py migrate

# Rerun the test coverage, and then create a report
(django_projects) bash-3.2$ pipenv run coverage
(django_projects) bash-3.2$ pipenv run cov_report

# Seeding reties database
(django_projects) bash-3.2$ python manage.py loaddata retries

Learning with following:

https://www.valentinog.com/blog/tutorial-api-django-rest-react/

Start coverage

$ pipenv run coverage
$ pipenv run cov_report

Migrate database

$ python manage.py makemigrations <app>
$ python manage.py migrate

Load fixtures data

$ python manage.py loaddata leads

Run the frontend and server together

$ npm run dev
$ python manage.py runserver

Run the UI test with Cypress

# Terminal #1
$ pipenv run python manage.py runserver

# Terminal #2
$ npm run e2e

Learning from following

https://www.revsys.com/tidbits/celery-and-django-and-docker-oh-my/

Install deps (Redis)

(django_projects) bash-3.2$ pipenv install redis

Setting up static resource folder

# Config STATIC_ROOT in settings.py, then
$ (django_projects) bash-3.2$ python manage.py collectstatic --no-input

django_projects's People

Contributors

lifuzu avatar

Watchers

James Cloos 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.