Skip to content

isoscorp/rpn_calculator

Repository files navigation

RPN CALCULATOR

Calculator API using Reverse Polish Notation

  • Python 3.8
  • Flask-RESTPlus
  • SQLAlchemy
  • PostgresSQL

Installation

Setup api

Install dependencies with

pip install -r ./setup/requirements.txt

Setup database

Install postgres, create your database and run the following script

CREATE SCHEMA IF NOT EXISTS rpn;

CREATE TABLE IF NOT EXISTS rpn.stacks(
    id      SERIAL PRIMARY KEY,
    items   INTEGER array
);

You can then configure your database environment variables in config/config.py

Usage

In production, run your application with

gunicorn main:app --bind "0.0.0.0:8080"

Release History

  • 0.0.1
    • Initialized API for RPN calculator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages