Tutorial: How to set up a Nextcloud development environment on Mac or Ubuntu?

Hello hello!

We have been working on a tutorial on how to set up a Nextcloud development environment using the docker of juliusheartl. As the steps differ quite a bit depending on the operating system, we made a tutorial for Ubuntu and Mac users.

You can find the tutorial here:
https://cloud.nextcloud.com/s/iyNGp8ryWxc7Efa

How difficult is it?
Well, it depends on your environment. If you have a fresh install, the tutorials should be reliable and straightforward. We also tested the tutorials with some people who already had other environments running on their computer, but those conflicted.

Tutorials for other operating systems
We are hoping for contributions of tutorials of a similar structure for other operating systems!
Edit: A windows tutorial is available too. See here for more information.

Edit2:
A video tutorial for Mac is available! See here:
https://youtu.be/9RE2tR1y8DQ

We really hope this will be helpful for some of you :pray:

7 Likes

Great job! This is certainly a much better experience than I had bootstrapping my first app back then. Very approachable :+1:

2 Likes

Thank you so much. This is really very helpful for me. I am looking forward to further tutorials.

The ports 80 an 443 are exposed to the world. It would be better to restrict them to localhost. How can I do this?

1 Like

You can simply change these lines of the docker-compose.yaml nextcloud-docker-dev/docker-compose.yml at 2cec861c04154536f4f6402a455f345de80271e8 · juliushaertl/nextcloud-docker-dev · GitHub to

- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
2 Likes

The main blog post on https://nextcloud.com/blog/nextcloud-app-development-tutorials/ does not mention windows. That might be fixed with an update comment, eventually.