ref: master
./HACKING.md
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
Noosfero instructions for developers ==================================== A work about your the development platform ------------------------------------------ These instructions are tested and known to work on Debian stable, which is the system that the Noosfero core developers use to work on Noosfero. If you want to use another OS, read "Instructions for other systems" below. Instructions for Debian stable ------------------------------ Download the source code: $ git clone https://gitlab.com/noosfero/noosfero.git $ cd noosfero Run the quick start script: $ ./script/quick-start Now you can execute the development server with: $ ./script/development You will be able to access Noosfero at http://localhost:3000/ If you want to use a different port than 3000, pass `-p <PORT>` to `./script/development` Instructions for other systems ------------------------------ On other OS, you have many options: ### 1) using a chroot or a VM with Debian stable (easier) Use a chroot (http://wiki.debian.org/Schroot) or a Virtual Machine (e.g. with VirtualBox) with a Debian stable system and follow the instructions above for Debian stable. ### 2) Installing dependencies on other OS (harder) If you want to setup a development environment in another OS, you can create a file under `./script/install-dependencies/`, called `<OS>-<CODENAME>.sh`, which installed the dependencies for your system. With this script in place, `./script/quick-start` will call it at the point of installing the required packages for Noosfero development. You can check `./script/install-dependencies/debian-squeeze.sh` to have an idea of what kind of stuff that script has to do. If you write such script for your own OS, *please* share it with us at the development mailing list so that we can include it in the official repository. This way other people using the same OS will have to put less effort to develop Noosfero. ### 3) Installing dependencies via Rubygems and RVM To setup the development environment through Rubygems you just need to install some basic deps and then install the gems defined on the Gemfile. Further instructions can be found on: http://noosfero.org/bin/view/Development/DepsWithRVMAndGems ### 4) Using a docker image Use a docker image to run an out-of-the-box development environment. Further information can be found on: https://hub.docker.com/r/noosfero/dev-rails4/ Submitting your changes back ---------------------------- For now please read: - Coding conventions http://noosfero.org/Development/CodingConventions - Patch guidelines http://noosfero.org/Development/PatchGuidelines |