serlo / serlo.org-legacy

Legacy implementation of https://serlo.org/
https://serlo.org/
Apache License 2.0
18 stars 3 forks source link
legacy-code php serlo typescript zend zend-framework
Serlo Logo

serlo.org

Monolith that still serves parts of serlo.org. Head over to api.serlo.org and frontend for new development.

Kanban board

Setup

You need Docker, Node.js v16 and Yarn installed on your system.

Now follow the upcoming instructions.

Clone

# Clone the project:
$ git clone https://github.com/serlo/serlo.org.git
$ cd serlo.org

Bootstrap

On Linux or macOS, just open a terminal and run the following commands:

$ cp docker-compose.dist.yml docker-compose.yml

Setting up hosts

On Windows, please add

127.0.0.1 de.serlo.localhost
127.0.0.1 en.serlo.localhost

to your C:\Windows\System32\drivers\etc\hosts.txt file. Then run ipconfig /flushdns in cmd.exe and restart your browser.

On macOS / Unix:

$ sudo nano /etc/hosts

# add lines
127.0.0.1    de.serlo.localhost
127.0.0.1    en.serlo.localhost

# flush macOS DNS cache
$ sudo killall -HUP mDNSResponder

Development

Install dependencies

Run yarn to install the dependencies of all packages.

Start

Run yarn start to start everything needed to run serlo.org locally. Now open http://de.serlo.localhost:4567. Happy coding!

Test users

You can use the following users at http://de.serlo.localhost:4567. The password for all users is 123456. Their names correspond to the roles they have:

Stop

Interrupt the yarn start command to stop webpack and run yarn stop:server to stop the docker containers.

Repository structure

This repository is managed as a monorepo consisting of the following packages. Check out their READMEs for package-specific details:

Other commands