Added base wiki
Some checks reported errors
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing

This commit is contained in:
Dominic Grimm 2022-02-16 21:45:39 +01:00
parent 12c4fd4e49
commit 4f3dfe0e72
9 changed files with 129 additions and 1 deletions

28
Makefile Normal file
View file

@ -0,0 +1,28 @@
# Mentorenwahl: A fullstack application for assigning mentors to students based on their whishes.
# Copyright (C) 2022 Dominic Grimm
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
.PHONY: all dev prod docs
all: docs prod
dev:
docker-compose build --build-arg BUILD_ENV=development
prod:
docker-compose build
docs:
cd docs && mdbook build

View file

@ -1,10 +1,12 @@
# mentorenwahl
[![Build Status](https://drone.dergrimm.net/api/badges/mentorenwahl/mentorenwahl/status.svg)](https://drone.dergrimm.net/mentorenwahl/mentorenwahl)
A fullstack application for assigning mentors to students based on their whishes.
# Documentation
To build the documentation, run `make docs` in `docker/backend/`.
To build the documentation, run `make docs`.
# License

17
docs/.gitignore vendored Normal file
View file

@ -0,0 +1,17 @@
# Mentorenwahl: A fullstack application for assigning mentors to students based on their whishes.
# Copyright (C) 2022 Dominic Grimm
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
book

27
docs/book.toml Normal file
View file

@ -0,0 +1,27 @@
# Mentorenwahl: A fullstack application for assigning mentors to students based on their whishes.
# Copyright (C) 2022 Dominic Grimm
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
[book]
authors = ["Dominic Grimm"]
language = "en"
multilingual = false
src = "src"
title = "Mentorenwahl"
[output.html]
git-repository-url = "https://git.dergrimm.net/mentorenwahl/mentorenwahl"
git-repository-icon = "fa-code-fork"
no-section-label = true

6
docs/src/SUMMARY.md Normal file
View file

@ -0,0 +1,6 @@
# Summary
- [Installation](./installation/README.md)
- [Clone the repository](./installation/clone.md)
- [Build the containers](./installation/build.md)
- [Development](./development/README.md)

View file

@ -0,0 +1,6 @@
# Development
For development, you will need:
- [Crystal](https://crystal-lang.org/)
- [NodeJs](https://nodejs.org/)

View file

@ -0,0 +1,9 @@
# Installation
To install the docker-compose app, you will need to have the following dependencies installed:
- [Git](https://git-scm.com/)
- [GNU Make](https://www.gnu.org/software/make/)
- [MdBook](https://github.com/rust-lang/mdBook)
- [Docker](https://www.docker.com/products/overview)
- [Docker Compose](https://docs.docker.com/compose/install/)

View file

@ -0,0 +1,19 @@
# Build the containers
Building the project is as simple as invoking the `make` command according to following options:
```bash
# All: documentation + production build
make
# Documentation
make docs
# Production build
make prod
# -----
# Development build
make dev
```

View file

@ -0,0 +1,14 @@
# Clone the repository
For building the containers from scratch, the repository's packages are required.
```bash
git clone https://git.dergrimm.net/mentorenwahl/mentorenwahl.git
cd mentorenwahl
```
After that you will need to create an environment configuration file.
```bash
cp .example.env .env
```