Git Product home page Git Product logo

ecom_dockerized's Introduction

Ecom web application

Banner

Database UML

Architecture

  • Ecom is a django single page (SPA) web app running on apache as a web server.
  • Apache proxies requests to the WSGI application which invokes the python application itself.
  • The latest multiprocessing apache module is used to create parallel replicas of our app. Each apache "event_worker" is 1 process and 1 python app. 1 process launches multiple threads so that each app is concurrently accessed by multiple users. The big performance advantage of the "event_worker" over the regular worker is that once the connection is idle, the thread gives back the control of the socket to Apache.
  • There is a full decoupling of the front end with React written in JSX which is then tranpiled to vanilla javascript through the dev and build scripts specified in the package.json file.
  • React components live in the "ecom/frontend" django app. Redux is extensively used to manage state in order to guarantee a single source of truth and avoid having the multiple components managing state. Each component gets the state as props from the store.
  • The continuous delivery pipeline is triggered by a git push to origin by any member that has write access to this repo.
  • The git push triggers a webhook where both github and jenkins are listening on in order to build the jenkins pipeline.
  • Specifications of the Jenkinsfile can be found above.
  • Any push to origin will trigger both webhooks however jenkins will only build the source code located in the "master" branch.

Features

  • Secure emailing with analytics: sending emails with sendgrid's service using a Recaptcha secured form
  • Feature 2
  • Feature 3

Backend development workflow

virtualenv -p python3.8 .
source bin/activate
pip install -r requirements.txt
python manage.py runserver

Frontend development workflow

npm i
npm run dev

Ignore mypy stuff

echo '*' > .mypy_cache/.gitignore

pip freeze > requirements.txt

Set the right encoding to avoid non ASCI chars displaying with weird characters

export LANG=en_US.UTF-8 unset PYTHONIOENCODING

Deployment checklist

  • Any changes to the requirements file?
  • Any changes to the .env file?

useful git commands

git rm -r --cached .

Preview

ui-demo

ecom_dockerized's People

Contributors

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