Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wizardofzos/aoc2021
Advent of Code 2021 - z/OS Flask REST Solutions (runnning python and REXX lol)
https://github.com/wizardofzos/aoc2021
Last synced: 3 months ago
JSON representation
Advent of Code 2021 - z/OS Flask REST Solutions (runnning python and REXX lol)
- Host: GitHub
- URL: https://github.com/wizardofzos/aoc2021
- Owner: wizardofzos
- Created: 2021-11-20T22:46:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-16T23:13:06.000Z (almost 3 years ago)
- Last Synced: 2024-06-30T04:14:00.463Z (4 months ago)
- Language: REXX
- Size: 93.8 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-advent-of-code - wizardofzos/aoc2021 - API, Python running REXX on Mainframes)* (Project Templates)
README
# AOC 2021 on z/OS
Based on https://github.com/wizardofzos/flask-rest-zos/
## What's this?
Repo for my solutions to AOC2021. More info: https://adventofcode.com/2021
Wanted to have some extra practice on flask-rest and also do some REXX.So I've made this REST API that either runs python code, or REXX and shows the result...
## Requirements
- Conda installed
- Python available
- Network connectivity to the outside world## Preparing for first run
conda activate
git clone [email protected]:wizardofzos/flask-rest-zos.git
cd flask-rest-zos
python -m venv .
. bin/activate
python3 -m pip install -r requirements.txt## Running it
conda activate
cd ../../flask-rest-zos
. bin/activate
# Optional if you want another port than 12345
export PORT=
python3 aoc2021.pyThen point your browser to http://:12345/swagger-ui and...
![AOC2021](https://github.com/wizardofzos/aoc2021/blob/main/aoc2021-startup.png?raw=true)
## Adding endpoints to the REST-APIEvery endpoint has it's own file in /endpoints. Make sure to add your new endpoints to /endpoints/__init__.py with a line like so:
from . import
Then in test-app.py add these lines:
from endpoints import
api.add_resource(, '/)And off you go :)
# TODO
Write how to add new solutions :)