Giter VIP home page Giter VIP logo

tpo's Introduction

TPO-Backend-App

This is a short guide on overall project Structure and setting up the system and environment dependencies required for the application to run.

Project Structure

app/db.py contains all database interfacing method or DAO

The API layer is implemented in the app/api directory and it contains all the Flask Blueprint

The run.py file is the application's entry point, the config.py file contains the application configurations, and the requirements.txt file contains the software dependencies for the application.

Function create_app in the app/__init__.py, given a configuration name, loads the correct configuration from the config.py file, as well as the configurations from the instance/config.py file.

Local Development Environment Configuration

  1. Download the latest version of Python from Python official website

  2. Fork the project, clone your fork, and configure the remotes:

    # Clone your fork of the repo into the current directory
    git clone https://github.com/<your-username>/TPO-Backend-App.git
    # Navigate to the newly cloned directory
    cd TPO-Backend-App
    # Assign the original repo to a remote called "upstream"
    git remote add upstream https://github.com/aissmstpo/TPO-Backend-App.git
    
  3. If you cloned a while ago, get the latest changes from upstream:

    git checkout master
    git pull upstream master
    
    # to push these changes to your fork
    git push origin master
    
  4. Create the virtual environment for application:

    # navigate to the TPO-Backend-App
    cd TPO-Backend-App
    
    # create the virtual environment
    python -m venv tpo_venv
    
    # activate the virtual environment
    # for unix
    source tpo_venv/bin/activate
    
    # for Windows
    tpo_venv\Scripts\activate
    
    # install the dependencies
    pip install -r requirements.txt
    
  1. Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:

    git checkout -b <topic-branch-name>
    
  2. Commit your changes

  3. Push your topic branch up to your fork:

    git push origin <topic-branch-name>
    
  4. Open a Pull Request with a clear title and description.

  5. After your Pull Request is away, you might want to get yourself back onto master and delete the topic branch:

    git checkout master
    git branch -D <topic-branch-name>
    

tpo's People

Contributors

kmangesh22 avatar dheeraj-israni avatar miracle16 avatar

Watchers

 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.