Coder Social home page Coder Social logo

coastatistics / aprp Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 5.0 24.26 MB

A dashboard visualize daily agriculture product price and volumn in Taiwan.

License: MIT License

Python 61.45% HTML 23.67% CSS 0.87% JavaScript 13.60% Dockerfile 0.07% Shell 0.11% Makefile 0.25%
taiwan agriculture visialization django rest-framework celery

aprp's Introduction

image

Template used

Smart Admin

Development

Download Docker Desktop for Mac or Windows. Docker Compose will be automatically installed. On Linux, make sure you have the latest version of Compose.

Linux Containers

The Linux stack uses Python, Redis for messaging and Postgres for storage.

Create your own .env file at root, e.g. using .env.example:

$ cp .env.example .env

Use --build to rebuild image, -d to run containers in the background :

$ docker-compose up

List the container stacks using make ps:

NAMES               IMAGE                PORTS                    STATUS
beat                aprp-web                                      Up 37 seconds
worker              aprp-web                                      Up 37 seconds
web                 aprp-web             0.0.0.0:8000->8000/tcp   Up 38 seconds
db                  postgres:10-alpine   5432/tcp                 Up 39 seconds
redis               redis:4.0            6379/tcp                 Up 40 seconds

Initial fixtures:

make init

Attach django shell using make shell

Use -v to clean volume while stop containers:

$ docker-compose down -v

Testing

Once services are up, use the command to run tests, will ignore the tests that involve secrets:

make test

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.