Skip to content

A web application that converts Arabic numbers to Roman numerals.

Notifications You must be signed in to change notification settings

pschmiedel/RomanConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

RomanConverter

A small web application that can be used to convert Arabic numbers into Roman numerals, e.g. 1984 => MCMLXXXIV.

How to start it

First, make sure Python 3 and Flask are installed (pip install Flask).

To start the application, run the following in the backend directory:

Linux:

export FLASK_APP=app.py
flask run

Windows:

set FLASK_APP=app.py
flask run

Then navigate your browser to http:https://localhost:5000.

Note: in a real-world application, the static frontend files would probably not be served by the backend application, but by a dedicated web server, e.g. nginx.

Developing

To start the backend in development mode, which will watch the code for file changes:

Linux:

export FLASK_DEBUG=1
flask run

Windows:

set FLASK_DEBUG=1
flask run

To start the frontend in development mode, go to the frontend directory and use npm start.

To push the compiled frontend files to the backend static folder, use npm run static.

Running backend tests

First run pip install pytest. From the backend folder, then run pytest.

Running frontend tests

From the frontend folder, run npm test.

About

A web application that converts Arabic numbers to Roman numerals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages