This serves as the backend for the LowCode UI, and contains functions and types that can be used to convert the editor's language into other languages (currently only JavaScript, CSS and HTML).
You can use stack build
to build this project. For that, you can get The Haskell Tool Stack.
You can run the project with stack run -- --dbhost ADDRESS --dbname postgres --dbpassword PASSWORD --dbport DB_PORT --dbuser USERNAME --connections CONNECTION_POOL_COUNT --port PORT --certificate PATH_TO_CERTIFICATE --key PATH_TO_KEY
. A PostgreSQL database running in the background is needed. The database schema will automatically be created once the project is run for the first time (as defined in Database.hs).
Additionally, you can specify the additional flags --accept-insecure
to accept HTTP connections, --detailed-request-logging
to have a more verbose logging of requests and --ip-from-header
to use IP from reader when logging (useful when using a reverse proxy).
In case you need to generate a key and certificate, try reading the warp-tls
README.
Afterwards, navigate to the given host to use it.
The main technologies being used in this project are:
For a complete list of dependencies, see low-code.cabal.
Anyone is free to contribute! Just make sure to follow the Code of Conduct.
As for the coding style, the most important is to stay consistent with the existing code, but this should be a good starting point.
This project is licensed under the MIT License.