Commodore 64 as a Service
- GET /api/program - LIST the program.
- POST /api/program - Create a NEW program.
- GET /api/program/<line number> - LIST the specified line number in the program.
- GET /api/run - RUN the program and return the output.
- PUT /api/program - Append to the program. (NOT YET IMPLEMENTED)
- PUT /api/program/<line number> - Update the line number in the program. (NOT YET IMPLEMENTED)
- Python 3+
- cbmbasic
- This requires the cbmbasic program to be in the environment path.
- https://github.com/mist64/cbmbasic
Activate a Python virtual enviroment.
$ python -m venv venv
$ source venv/bin/activate
(venv) $
Install Flask and Connexion.
(venv) $ python -m pip install Flask==2.2.2
(venv) $ python -m pip install "connexion[swagger-ui]==2.14.1"
Run the App.
(venv) $ python app.py
Navigate to http://localhost:8000 to learn more.