Git Product home page Git Product logo

go-coup's Introduction

go-coup

Dependencies

  • Docker
  • Docker-Compose
  • ในกรณีที่จะรัน elasticsearch ระบบต้องมี RAM อย่างน้อย 1gb

Usage Tools

  • Django 1.11
  • Go Programming Language
  • NodeJS
  • PostgreSQL
  • MongoDB
  • Redis
  • Memcached

Build and run container(s)

  • รันคำสั่งนี้บน terminal ใน project dir เพื่อทำการรัน Docker container
docker-compose up
  • ในกรณีที่อยู่ในระหว่างการ development ให้ใช้ django built-in server เป็นหลัก และใช้ uwsgi ร่วมกับ nginx ในระหว่างช่วง deployment
  • uwsgi ถูก config ไว้ให้สื่อสารกับ nginx ผ่านทาง socket ถ้าต้องการจะทดสอบการเข้าเว็บผ่าน uwsgi โดยตรง จะต้องเข้าไปแก้ไฟล์ config ก่อน

Rule

  • ในกรณีที่ต้องการใช้ Python package เพิ่มเติม ให้เพิ่มชื่อ package ใน requirements.txt ด้วย
  • ในกรณีที่ต้องการรันคำสั่งต่างๆ บน container (เช่น pip หรือ manage.py) ให้รันคำสั่งดังกล่าวโดยพิมพ์ docker-compose exec web นำหน้าด้วย เช่น
docker-compose exec web python manage.py migrate
  • คำสั่งที่ต้องการให้รัทุกครั้งที่ทำการรัน Docker container ให้นำไปเพิ่มในไฟล์ entrypoint.sh
  • ในกรณีที่จะรันร่วมกับ nginx ให้รันโดยใช้ uwsgi

go-coup's People

Contributors

eveem avatar komkanit avatar mambaclaw avatar monthol8th avatar psychoab avatar redsanji avatar rockin0x avatar seaiin avatar tidjungs avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

go-coup's Issues

ระบบใช้ัตั๋ว

ไม่แน่ใจว่ามีใครรับงานทำระบบนี้ หรือมีคนทำระบบนี้ไปยังหว่า?

ถ้ายังไม่มีก็รบกวนกันหน่อยเน้อ

Validate หน้า add-edit ticket

screen shot 2017-11-22 at 8 25 20 am

  • ติ๊ก is period แล้วไม่ใส่ remaining day(จน.วันที่สามารถใช้ได้) ได้
  • ติ๊ก is limit แล้วไม่ใส่ remaining(จำนวนตั๋วที่จำหน่าย) ได้
  • Price ใส่เกินinteger limit แล้วบรึ้ม อาจต้องแก้ที่ models เอา

ทำ data ต้นแบบ

  • สร้าง data ด้วยการเล่นกับระบบ เช่น สมัครสมาชิก สร้างตั๋ว ซื้อคูปอง เติมเงิน บลาๆๆ
  • export data ออกมาเป็น json file ด้วยคำสั่ง
docker-compose exec web python manage.py dumpdata --exclude usermanage.RightsSupport --output dumpdata.json
  • สามารถลอง import data เข้าระบบ ด้วยคำสั่ง
docker-compose exec web python manage.py loaddata dumpdata.json

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.