1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +00:00
sophon/README.md

171 lines
5 KiB
Markdown
Raw Normal View History

# Sophon
2021-04-03 13:43:34 +00:00
2021-08-03 01:17:31 +00:00
_A research hub for universities_
2021-10-21 03:04:37 +00:00
![Screenshot 1](https://user-images.githubusercontent.com/1540885/138204295-59c6efc3-a4fe-4c91-982b-8257e42b7970.png)
![Screenshot 2](https://user-images.githubusercontent.com/1540885/138204345-346d144f-914f-4435-8816-69abe4a34381.png)
![Screenshot 3](https://user-images.githubusercontent.com/1540885/138204387-69cd2e63-3030-48b8-a149-043e3e2393f7.png)
2021-10-21 01:57:30 +00:00
2021-08-03 01:17:31 +00:00
## Goal
2022-01-03 17:42:14 +00:00
The goal of this project is developing a platform that universities can use to **host** and **share** their _datasets_, _research projects_ and resulting _papers_.
2021-08-03 01:17:31 +00:00
2021-10-21 01:57:30 +00:00
2021-10-21 03:00:09 +00:00
## Installation
### Requirements
- Internet connection
- Any Linux server
- [Docker][what-is-docker]
- [Docker Compose][what-is-compose]
[what-is-docker]: https://www.docker.com/
2021-10-21 03:02:50 +00:00
[what-is-compose]: https://docs.docker.com/compose/
2021-10-21 03:00:09 +00:00
### Steps
1. Create a new directory named `sophon` on your machine and enter it:
```console
# mkdir sophon
# cd sophon
```
2. Pull the `ghcr.io/steffo99/sophon-jupyter` Docker image:
```console
# docker pull ghcr.io/steffo99/sophon-jupyter
```
3. Download the `docker-compose.yml` file from this repository:
```console
# wget "https://raw.githubusercontent.com/Steffo99/sophon/main/docker-compose.yml"
```
4. Configure the `docker-compose.yml` file following the instructions written in the comments:
```console
# vim docker-compose.yml
```
5. Start the Docker containers:
```console
# docker compose up -d
```
2021-10-21 02:23:03 +00:00
## Structure
2021-08-03 01:17:31 +00:00
2021-10-21 01:57:30 +00:00
The project consists of four parts:
2021-10-21 02:23:03 +00:00
- a **single-page-app** built with [React][what-is-react] (`/frontend`);
- a **web API** built with [Django Rest Framework][what-is-drf] (`/backend`);
- a **dynamic proxy** implemented on the [Apache HTTP Server][what-is-httpd] (`/proxy`);
- a **Docker image** containing a single instance of [JupyterLab][what-is-jupyterlab] (`/jupyter`)
[what-is-react]: https://reactjs.org/
[what-is-drf]: https://www.django-rest-framework.org/
[what-is-httpd]: https://httpd.apache.org/
2021-10-21 01:57:30 +00:00
2021-10-21 02:23:03 +00:00
[what-is-jupyterlab]: https://jupyter.org/
2021-10-21 01:57:30 +00:00
For more details on the underlying libraries, packages, modules and plugins used, see the following files:
- [`/frontend/package.json`][lib-frontend]
- [`/backend/pyproject.toml`][lib-backend]
- [`/proxy/httpd.conf`][lib-proxy]
- [`/jupyter/Dockerfile`][lib-jupyter]
[lib-frontend]: https://github.com/Steffo99/sophon/blob/main/frontend/package.json
2021-10-21 02:23:03 +00:00
2021-10-21 01:57:30 +00:00
[lib-backend]: https://github.com/Steffo99/sophon/blob/main/backend/pyproject.toml
2021-10-21 02:23:03 +00:00
2021-10-21 01:57:30 +00:00
[lib-proxy]: https://github.com/Steffo99/sophon/blob/main/proxy/httpd.conf
2021-10-21 02:23:03 +00:00
2021-10-21 01:57:30 +00:00
[lib-jupyter]: https://github.com/Steffo99/sophon/blob/main/jupyter/Dockerfile
2021-08-03 01:17:31 +00:00
2021-10-21 02:23:03 +00:00
## Development
2021-08-03 01:17:31 +00:00
### Progress
2021-10-21 02:23:03 +00:00
Development progress is tracked on issues [#20][issue-#20] and [#67][issue-#67].
Also see the [issue tracker][issue-tracker].
[issue-#20]: https://github.com/Steffo99/sophon/issues/20
[issue-#67]: https://github.com/Steffo99/sophon/issues/67
[issue-tracker]: https://github.com/Steffo99/sophon/issues
2021-08-03 01:17:31 +00:00
2021-10-21 01:57:30 +00:00
2021-08-03 01:17:31 +00:00
### Tools
2021-10-21 02:23:03 +00:00
Sophon is developed using [IntelliJ IDEA Ultimate][what-is-idea].
2021-08-03 01:17:31 +00:00
2021-10-21 02:23:03 +00:00
Metadata is included in the `/.idea` directory so that code style and run configuration are consistent across all machines used during the development.
Run configurations for *running the backend*, *testing the backend*, *running the frontend* and *testing the frontend* are included.
[what-is-idea]: https://www.jetbrains.com/idea/
2021-10-21 01:57:30 +00:00
2021-08-03 01:17:31 +00:00
### Commits
2021-10-21 02:23:03 +00:00
Commits names are prefixed with a variant of [Gitmoji][what-is-gitmoji] which follows roughly this legend:
2021-08-03 01:17:31 +00:00
- ✨ New feature
- 🔧 Refactor or tweak
- 🐛 Bug fix
- 🧹 Cleanup
- 📔 Documentation
- 🎓 Thesis
2021-08-03 01:17:31 +00:00
- 🗒 Readme
- ⬆ Dependency update
- 📦 Packaging
- 🔨 Tool update
- 🚧 Work in progress
2021-10-21 02:23:03 +00:00
- 🔀 Merge
[what-is-gitmoji]: https://gitmoji.dev/
### Continuous Deployment (CD)
Sophon uses [GitHub Actions][what-is-github-actions] and [Vercel][what-is-vercel] for Continuous Deployment.
[what-is-vercel]: https://vercel.com/
[what-is-github-actions]: https://docs.github.com/en/actions
Docker images for the frontend, backend, proxy and jupyterlab are built by GitHub Actions **on each push to the `main` branch** of this repository,
and [automatically published][list-containers] to the [GitHub Container Registry][what-is-github-containers]
[list-containers]: https://github.com/Steffo99?tab=packages&repo_name=sophon
[what-is-github-containers]: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
A generic version of the frontend is build automatically by Vercel **on each push to the `main` branch** and **on every pull request** to this repository, and
automatically published to the [sophon.steffo.eu](https://sophon.steffo.eu) domain.
### Releases
Releases are created on each milestone and are available on the [Releases page][list-releases].
[list-releases]: https://github.com/Steffo99/sophon/releases
## People
2021-08-03 01:17:31 +00:00
2021-10-21 02:23:03 +00:00
The project is developed by [Stefano Pigozzi][who-is-stefano-pigozzi] for [Università degli studi di Modena e Reggio Emilia][what-is-unimore].
2021-10-21 01:57:30 +00:00
2021-10-21 02:23:03 +00:00
[who-is-stefano-pigozzi]: https://steffo.eu
2021-08-03 01:17:31 +00:00
2021-10-21 02:23:03 +00:00
[what-is-unimore]: https://www.unimore.it/