Welcome to the kthcloud/console repository! This project is the web console for kthcloud, a free cloud provider at KTH, created by students for students. It is built in TypeScript, leveraging React and MUI. We warmly welcome your contributions, and we hope this README helps you get started.
console uses these services for its functionality.
kthcloud maintained:
External:
Before you start, make sure you have bun installed on your system. You can install it at https://bun.sh
You can then set up the project by running the following commands in your terminal:
git clone https://github.com/kthcloud/console.git
cd console
bun install
bun run dev
The bun run dev
command will start the development server. You can access the application at http://localhost:3000
.
We are thrilled you are considering contributing to the kthcloud project! We welcome contributions from everyone, and we are here to help you if you need it.
You can find our current issues in the Issues tab. If you have any questions, feel free to discuss in the issue thread.
The main
branch is the main development branch, so all pull requests should be created against main
.
You can find a CI/CD build of the main
branch at beta.app.cloud.cbh.kth.se.
Before you start coding:
my-new-feature
or fixing-bug
.After you've made your changes:
main
.Please include a detailed description of your changes in your pull request.
Any strings added in the code should be created as entries in the src/locales
folder, in en.json
. kthcloud also supports Swedish, and we would be grateful if you could provide translations for both languages. You can add translations in sv.json
. If you are unsure about the translation, feel free to ask in the issue thread or on Discord.
To add a new string, you can use the t
function from react-i18next
. For example:
import { useTranslation } from "react-i18next";
function MyComponent() {
const { t } = useTranslation();
return <h1>{t("myString")}</h1>;
}
If you would like to add support for another language, please discuss this as an issue first. We would be happy to help you get started, however as this creates a maintenance burden, we would like to discuss the need for the language first.
This project uses Prettier as the code formatter. We have a .prettierrc
file in the repository that sets the formatting rules, so please make sure to format your code before submitting a pull request. You can format your code by using the appropriate extension or plugin in your IDE, or running bun run format
in your terminal (You can install prettier with bun install -g prettier
).
This project is licensed under the MIT License. Feel free to use the source code and modify it to your needs.
See the LICENSE file for details.