You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # Nextcloud Server ☁
  2. [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nextcloud/server/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nextcloud/server/?branch=master)
  3. [![codecov](https://codecov.io/gh/nextcloud/server/branch/master/graph/badge.svg)](https://codecov.io/gh/nextcloud/server)
  4. [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/209/badge)](https://bestpractices.coreinfrastructure.org/projects/209)
  5. [![Design](https://contribute.design/api/shield/nextcloud/server)](https://contribute.design/nextcloud/server)
  6. **A safe home for all your data.**
  7. ![](https://raw.githubusercontent.com/nextcloud/screenshots/master/nextcloud-hub-files-25-preview.png)
  8. ## Why is this so awesome? 🤩
  9. * 📁 **Access your Data** You can store your files, contacts, calendars, and more on a server of your choosing.
  10. * 🔄 **Sync your Data** You keep your files, contacts, calendars, and more synchronized amongst your devices.
  11. * 🙌 **Share your Data** …by giving others access to the stuff you want them to see or to collaborate with.
  12. * 🚀 **Expandable with hundreds of Apps** ...like [Calendar](https://github.com/nextcloud/calendar), [Contacts](https://github.com/nextcloud/contacts), [Mail](https://github.com/nextcloud/mail), [Video Chat](https://github.com/nextcloud/spreed) and all those you can discover in our [App Store](https://apps.nextcloud.com)
  13. * 🔒 **Security** with our encryption mechanisms, [HackerOne bounty program](https://hackerone.com/nextcloud) and two-factor authentication.
  14. Do you want to learn more about how you can use Nextcloud to access, share and protect your files, calendars, contacts, communication & more at home and in your organization? [**Learn about all our Features**](https://nextcloud.com/athome/).
  15. ## Get your Nextcloud 🚚
  16. - ☑️ [**Simply sign up**](https://nextcloud.com/signup/) at one of our providers either through our website or through the apps directly.
  17. - 🖥 [**Install** a server by yourself](https://nextcloud.com/install/#instructions-server) on your hardware or by using one of our ready to use **appliances**
  18. - 📦 Buy one of the [awesome **devices** coming with a preinstalled Nextcloud](https://nextcloud.com/devices/)
  19. - 🏢 Find a [service **provider**](https://nextcloud.com/providers/) who hosts Nextcloud for you or your company
  20. Enterprise? Public Sector or Education user? You may want to have a look into [**Nextcloud Enterprise**](https://nextcloud.com/enterprise/) provided by Nextcloud GmbH.
  21. ## Get in touch 💬
  22. * [📋 Forum](https://help.nextcloud.com)
  23. * [👥 Facebook](https://www.facebook.com/nextclouders)
  24. * [🐣 Twitter](https://twitter.com/Nextclouders)
  25. * [🐘 Mastodon](https://mastodon.xyz/@nextcloud)
  26. You can also [get support for Nextcloud](https://nextcloud.com/support)!
  27. ## Join the team 👪
  28. There are many ways to contribute, of which development is only one! Find out [how to get involved](https://nextcloud.com/contribute/), including as a translator, designer, tester, helping others, and much more! 😍
  29. ### Development setup 👩‍💻
  30. 1. 🚀 [Set up your local development environment](https://docs.nextcloud.com/server/latest/developer_manual/getting_started/devenv.html)
  31. 2. 🐛 [Pick a good first issue](https://github.com/nextcloud/server/labels/good%20first%20issue)
  32. 3. 👩‍🔧 Create a branch and make your changes. Remember to sign off your commits using `git commit -sm "Your commit message"`
  33. 4. ⬆ Create a [pull request](https://opensource.guide/how-to-contribute/#opening-a-pull-request) and `@mention` the people from the issue to review
  34. 5. 👍 Fix things that come up during a review
  35. 6. 🎉 Wait for it to get merged!
  36. Third-party components are handled as git submodules which have to be initialized first. So aside from the regular git checkout invoking `git submodule update --init` or a similar command is needed, for details see Git documentation.
  37. Several apps that are included by default in regular releases such as [First run wizard](https://github.com/nextcloud/firstrunwizard) or [Activity](https://github.com/nextcloud/activity) are missing in `master` and have to be installed manually by cloning them into the `apps` subfolder.
  38. Otherwise, git checkouts can be handled the same as release archives, by using the `stable*` branches. Note they should never be used on production systems.
  39. ### Working with front-end code 🏗
  40. #### Building Vue components and scripts
  41. We are moving more and more toward using Vue.js in the front-end, starting with Settings. For building the code on changes, use these terminal commands in the root folder:
  42. ```bash
  43. # install dependencies
  44. make dev-setup
  45. # build for development
  46. make build-js
  47. # build for development and watch edits
  48. make watch-js
  49. # build for production with minification
  50. make build-js-production
  51. ```
  52. #### Building styles
  53. Styles are written in SCSS and compiled to css.
  54. ```bash
  55. # install dependencies
  56. make dev-setup
  57. # compile style sheets
  58. npm run sass
  59. # compile style sheets and watch edits
  60. npm run sass:watch
  61. ```
  62. #### Committing changes
  63. **When making changes, also commit the compiled files!**
  64. We still use Handlebars templates in some places in Files and Settings. We will replace these step-by-step with Vue.js, but in the meantime, you need to compile them separately.
  65. If you don’t have Handlebars installed yet, you can do it with this terminal command:
  66. ```bash
  67. sudo npm install -g handlebars
  68. ```
  69. Then inside the root folder of your local Nextcloud development installation, run this command in the terminal every time you changed a `.handlebars` file to compile it:
  70. ```bash
  71. ./build/compile-handlebars-templates.sh
  72. ```
  73. Before checking in JS changes, make sure to also build for production:
  74. ```bash
  75. make build-js-production
  76. ```
  77. Then add the compiled files for committing.
  78. To save some time, to only rebuild for a specific app, use the following and replace the module with the app name:
  79. ```bash
  80. MODULE=user_status make build-js-production
  81. ```
  82. Please note that if you used `make build-js` or `make watch-js` before, you'll notice that a lot of files were marked as changed, so might need to clear the workspace first.
  83. ### Working with back-end code 🏗
  84. When changing back-end PHP code, in general, no additional steps are needed before checking in.
  85. However, if new files were created, you will need to run the following command to update the autoloader files:
  86. ```bash
  87. build/autoloaderchecker.sh
  88. ```
  89. After that, please also include the autoloader file changes in your commits.
  90. ### Tools we use 🛠
  91. - [👀 BrowserStack](https://browserstack.com) for cross-browser testing
  92. - [🌊 WAVE](https://wave.webaim.org/extension/) for accessibility testing
  93. - [🚨 Lighthouse](https://developers.google.com/web/tools/lighthouse/) for testing performance, accessibility, and more
  94. ## Contribution guidelines 📜
  95. All contributions to this repository from June 16, 2016, and onward are considered to be
  96. licensed under the AGPLv3 or any later version.
  97. Nextcloud doesn't require a CLA (Contributor License Agreement).
  98. The copyright belongs to all the individual contributors. Therefore we recommend
  99. that every contributor adds the following line to the header of a file if they
  100. changed it substantially:
  101. ```
  102. @copyright Copyright (c) <year>, <your name> (<your email address>)
  103. ```
  104. Please read the [Code of Conduct](https://nextcloud.com/community/code-of-conduct/). This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.
  105. Please review the [guidelines for contributing](.github/CONTRIBUTING.md) to this repository.
  106. More information how to contribute: [https://nextcloud.com/contribute/](https://nextcloud.com/contribute/)