Calculator API using Reverse Polish Notation
- Python 3.8
- Flask-RESTPlus
- SQLAlchemy
- PostgresSQL
Install dependencies with
pip install -r ./setup/requirements.txtInstall 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
In production, run your application with
gunicorn main:app --bind "0.0.0.0:8080"- 0.0.1
- Initialized API for RPN calculator