Self-hosting is the practice of running and maintaining a website or service using a private web server, instead of using a service outside of someone's own control. - Wikipedia
You must first create your app on MecSimCalc Create.
Once created, you can either:
- Publish directly to the MecSimCalc platform for free
- Download the app and host it yourself (eg. on a private server)
- Follow these instructions on self-hosting
We recommend that you publish directly to the MecSimCalc platform for ease-of-use and to get the latest updates, however, self-hosting is available for advanced users who wish to host their apps on their own servers.
This self-hosted version only allows for the viewing and running of existing apps. Creating new apps and editing apps can only be done on mecsimcalc.com.
The self-hosted source code is a NextJS website application with ReactJS and Typescript. This application has two pages.
The first page is the explore page, which lists all of the apps:
The second page is the app page, where the user can run the apps:
|Localhost||Run on your local machine|
This application uses the client-server model: there are two independent processes that communicate with each over over the network.
The server is written in
Python 3 using the Flask web framework. The server is responsible for keeping track of all the apps and will execute the Python code of each app. When requested by the client, the server will return the app details to the client.
|back-end||The server code|
|front-end||The client code|