Giter Site home page Giter Site logo

edupro's Introduction

eduPro server

Tech

Using Library

Installation

to run the program greater, equal than python 3.5 version

Step.1 Install dependent packages

$ pip3 install virtualenv
$ virtualenv -p python venv
$ source venv/bin/activate
$ pip install -r requirements.txt

* if your installment stuck at "error: command 'gcc' failed with exit status 1"
Use below command
LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient

Change directory

cd eduPro/

Starting server through basic setting file like below.

$ python manage.py migrate
$ python manage.py runserver

Starting server through specific setting file like below. It referencs running environment value of 'RUNNING_ENV'. Vlaues of 'RUNNING_ENV' are base, local, development, stage, production

  • base : basic setting
  • local : setting for local development
  • development : setting for development deploy
  • stage : setting for stage deploy
  • production : setting for production deploy

Each setting file's definitions are in settings directory, Sensitive information like password has to be defined in secrets.json under settings directory,

$ export RUNNING_ENV=development
$ python manage.py runserver

After starting the server, put the address of the server for checking it works.

http://127.0.0.1:8000

Docker

Docker You can install and deploy by using Docker container.

Basically, docker that is applied to this project uses port 80 When it is ready to build, it builds image, using Dockerfile.

$ docker build -t server .

When build process was finished properly, create a container that is based the Docker image. When you create the container, map the port to connect and host port. The example below maps host port 8000 and container port 80(that is exposed at Dockerfile).

$ docker run -d -p 8000:80 server

When container was created properly, type the server address in your browser

127.0.0.1:8000

API Document

Document fot API is automatically created through Swagger.

Swagger API documentation's address is /api/swagger.

Ex) /api/swagger

Branch Naming & Merge Request Rule

when process is going, branch naming rule is like below.

  • master : Storage for code of relased version
  • develop : Storage for code on developing process
  • feature-{issue_number} : Case incluing new feature. (ex: adding APP, Endpoint and etc)
  • improve-{issue_number} : Case of that there is improvements for code of previous version. (ex: refactoring, improvement and etc)
  • fix-{issue_number} : Case of bug fix.

Sequence of merge request is (feature-*, improve-*, fix-*) -> develop -> master

edupro's People

Contributors

myungwooko 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.