Coder Social home page Coder Social logo

obs4's Introduction

OBS4

Online Banking System

Do virtualenv env
source env/bin/activate
pip3 install -r requirements
export(Mac) or set(Windows) SECRET_KEY= "Choose a Key here"
Either set FLASK_APP or python3 main.py
On a seperate terminal python3 apis/"api name"

Document

Repo Link: https://github.com/kwaku97/OBS4
Styling Format PeP8: https://www.python.org/dev/peps/pep-0008/
Swagger Hub Documentation: https://github.com/kwaku97/OBS4/blob/master/Milestone-2/openapi.yaml

If a rollback was necessary, git allows you to go back to a specific commit by specifying the commmit tag given at that commit. The command I would reccomend is git checkout -b old-state #tag. This command will switch to a new branch using the tag of the time frame you want. This will allow you to be on a new bracnh and try it out before actually merging and changing everything. If you are sure from the beginnning, you can use the command git reset --hard #tag. This will reset everything you did up to the tag you specified.

We used Python as our primary language of choice. With Flask we are serving information to the front end by specfic routes and handling requests on the backend. For this project we used three different databases. The firstt database handles the register and login information about the user. This database uses POSTGRES and with the help of SQLAlchemy, modeling the table was simple.We the retrieved the data using WTForms which is a python library that rpovides login and registration support. For storing information about the users shares,different accounts,cash and net worth we used another POSTGRES database to do the math and hold that information. Finally for our APIs we used firebase. We used firebase to store sucessful/failed purhcases and success/failed login attempts. We used Python's Jwt library to provide a token everytime a user is logged in and it apppears on the front page when login is successful.

Our Repo Configuration mainly consists of our web client as one seperate entity and our apis/test as its own entity. Through specific request, calls are made to make that conenction. We use Google Cloud Build to create our CD pipeline. Our pipline is connect to our Github repo's master branch. When a new push is made to the remote branch, a build is triggered to create a base docker image that contains our github repo and our environment variables. From this base image we run our unit tests. Then if the tests past we create four stock APIs docker images, and a docker image for our web client. After creating the images we deploy our services to Cloud Run.

obs4's People

Contributors

giovannicodes avatar jboakyedonkor avatar santiagomejia183 avatar stevenmedina-de 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.