strapi/CONTRIBUTING.md
2017-09-29 14:33:41 +02:00

2.9 KiB

Contribute to the project

Open Development & Community Driven

Strapi is open-source under the MIT license. All the work done is available on GitHub. The core team and the contributors send pull requests which go through the same validation process.

Every user can send a feature request using the issues on GitHub.


Repository Organization

We made the choice to use a monorepo design such as React, Babel, Meteor or Ember do. It allows the community to easily maintain the whole ecosystem up-to-date and consistent.

The Babel team wrotes an excellent short post about the pros and cons of the monorepo design.

We will do our best to keep the master branch clean as possible, with tests passing all the times. However, it can happen that the master branch moves faster than the release cycle. To ensure to use the latest stable version, please refers to the release on npm.

If you send a pull request, please do it again the master branch. We are developing upcoming versions separately to ensure non-breaking changes from master to the latest stable major version.


Setup Development Environment

To facilitate the contribution, we drastically reduce the amount of commands necessary to install the entire development environment. First of all, you need to check if you're using the recommended versions of Node.js (v8) and npm (v5).

Then, please follow the instructions below:

  1. Fork the repository to your own GitHub account.
  2. Clone it to your computer git clone git@github.com:strapi/strapi.git.
  3. Run npm run setup at the root of the directory.

Note: If the installation failed, please remove the global packages related to Strapi. The command npm ls strapi will help you to find where your packages are installed globally.

The development environment has been installed. Now, you have to create a development project to live-test your updates.

  1. Go to a folder on your computer cd /path/to/my/folder.
  2. Create a new project strapi new myDevelopmentProject --dev.
  3. Start your app with strapi start.

Awesome! You are now able to make bug fixes or enhancements in the framework layer of Strapi. To make updates in the administration panel, you need to go a little bit further.

  1. Open a new tab or new terminal window.
  2. Go to the /admin folder of your currently running app.
  3. Run npm start and go to the following url http://localhost:4000/admin