Skip to content

Commit

Permalink
Merge pull request #1 from consul/summary_and_installation
Browse files Browse the repository at this point in the history
Gitbook first attempt
  • Loading branch information
bertocq committed Aug 17, 2017
2 parents 4a31235 + ce8f2df commit c06bd39
Show file tree
Hide file tree
Showing 37 changed files with 201 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
_book/**/*
4 changes: 4 additions & 0 deletions docs/LANGS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Languages

* [English](en/)
* [Español](es/)
3 changes: 1 addition & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# docs
Consul documentation
# Consul documentation
12 changes: 12 additions & 0 deletions docs/en/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Consul Documentation
[![Build Status](https://travis-ci.org/consul/consul.svg?branch=master)](https://travis-ci.org/consul/consul)
[![Code Climate](https://codeclimate.com/github/consul/consul/badges/gpa.svg)](https://codeclimate.com/github/consul/consul)
[![Coverage Status](https://coveralls.io/repos/github/consul/consul/badge.svg?branch=master)](https://coveralls.io/github/consul/consul?branch=master)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](http://www.gnu.org/licenses/agpl-3.0)
[![Accessibility conformance](https://img.shields.io/badge/accessibility-WAI:AA-green.svg)](https://www.w3.org/WAI/eval/Overview)

[![Join the chat at https://gitter.im/consul/consul](https://badges.gitter.im/consul/consul.svg)](https://gitter.im/consul/consul?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/consul/consul/issues?q=is%3Aissue+is%3Aopen+label%3APRs-welcome)

# Licensing
Code published under AFFERO GPL v3 (see [LICENSE-AGPLv3.txt](https://github.com/consul/consul/blob/master/LICENSE-AGPLv3.txt)).
25 changes: 25 additions & 0 deletions docs/en/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Summary

* [Introduction](README.md)

### Getting started
* [Local installation](installation/README.md)
* [Production and Test servers](servers/README.md)
* [Recomendations](recomendations/README.md)

### Customization
* [Templating](customization/templating.md)
* [Translations](customization/translations.md)
* [Overwritting](customization/overwritting.md)
* [Adding new features](customization/new_features.md)

### Your Consul
* [Creating your fork](forks/create.md)
* [Keeping your fork updated](forks/update.md)
* [Communication](forks/communication.md)

### Open Source project
* [Code of conduct](open_source/code_of_conduct.md)
* [Contributing](open_source/contributing.md)
* [Testing](open_source/testing.md)
* [Linters and conventions](open_source/conventions.md)
5 changes: 5 additions & 0 deletions docs/en/book.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gitbook": ">= 3.0.0",
"title": "Consul Documentation",
"description": "Citizen Participation and Open Government Application"
}
1 change: 1 addition & 0 deletions docs/en/customization/new_features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Adding new features
1 change: 1 addition & 0 deletions docs/en/customization/overwritting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Overwritting
1 change: 1 addition & 0 deletions docs/en/customization/templating.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Templating
1 change: 1 addition & 0 deletions docs/en/customization/translations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Translations
1 change: 1 addition & 0 deletions docs/en/forks/communication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Communication
1 change: 1 addition & 0 deletions docs/en/forks/create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Creating your fork
1 change: 1 addition & 0 deletions docs/en/forks/update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Keeping your fork updated
42 changes: 42 additions & 0 deletions docs/en/installation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Local installation

Before installing Consul and having it up and running make sure you have [Ruby 2.3.2](https://www.ruby-lang.org/en/news/2016/11/15/ruby-2-3-2-released/) installed in your local environment.

1. First, clone the [Consul Github repository](https://github.com/consul/consul/):

```
git clone https://github.com/consul/consul.git
```

2. Go to the project folder and install the gems stack using [Bundler](http://bundler.io/):
```
cd consul
bundle install
```

3. Copy the environment example configuration files inside new readable ones:

```
cp config/database.yml.example config/database.yml
cp config/secrets.yml.example config/secrets.yml
```

4. Run the following [Rake tasks](https://github.com/ruby/rake) to fill your local database with the minimum data to run the application:

```
bin/rake db:setup
bin/rake db:dev_seed
RAILS_ENV=test rake db:setup
```

5. Now you have all set, run the application:

```
rails s
```

Congratulations! Your local Consul application will be running now at `http://localhost:3000`.

In case you want to access the local application as admin, a default user with admin permissions was created by the seed files with **username** `[email protected]` and **password** `12345678`.

If you need an specific user to perform actions such as voting, a default verified user is also available with **username** `[email protected]` and **password** `12345678`.
1 change: 1 addition & 0 deletions docs/en/open_source/code_of_conduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Code of conduct
1 change: 1 addition & 0 deletions docs/en/open_source/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Contributing
1 change: 1 addition & 0 deletions docs/en/open_source/conventions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Linters and conventions
1 change: 1 addition & 0 deletions docs/en/open_source/testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Testing
1 change: 1 addition & 0 deletions docs/en/recomendations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Recomendations
1 change: 1 addition & 0 deletions docs/en/servers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Production and Test servers
12 changes: 12 additions & 0 deletions docs/es/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Documentación Consul
[![Build Status](https://travis-ci.org/consul/consul.svg?branch=master)](https://travis-ci.org/consul/consul)
[![Code Climate](https://codeclimate.com/github/consul/consul/badges/gpa.svg)](https://codeclimate.com/github/consul/consul)
[![Coverage Status](https://coveralls.io/repos/github/consul/consul/badge.svg?branch=master)](https://coveralls.io/github/consul/consul?branch=master)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](http://www.gnu.org/licenses/agpl-3.0)
[![Accessibility conformance](https://img.shields.io/badge/accessibility-WAI:AA-green.svg)](https://www.w3.org/WAI/eval/Overview)

[![Join the chat at https://gitter.im/consul/consul](https://badges.gitter.im/consul/consul.svg)](https://gitter.im/consul/consul?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/consul/consul/issues?q=is%3Aissue+is%3Aopen+label%3APRs-welcome)

# Licencia
Código publicado bajo licencia AFFERO GPL v3 (ver [LICENSE-AGPLv3.txt](https://github.com/consul/consul/blob/master/LICENSE-AGPLv3.txt)).
25 changes: 25 additions & 0 deletions docs/es/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Summary

* [Introducción](README.md)

### Primeros pasos
* [Instalación local](installation/README.md)
* [Servidores de prueba y producción](servers/README.md)
* [Recomendaciones](recomendations/README.md)

### Personalización
* [Interfaz y diseño](customization/templating.md)
* [Idiomas](customization/translations.md)
* [Adaptar la aplicación](customization/overwritting.md)
* [Añadir nuevas funcionalidades](customization/new_features.md)

### Tu Consul
* [Crea tu fork](forks/create.md)
* [Manten tu fork actualizado](forks/update.md)
* [Comunicación](forks/communication.md)

### Proyecto Open Source
* [Código de conducta](open_source/code_of_conduct.md)
* [Contribuciones](open_source/contributing.md)
* [Tests](open_source/testing.md)
* [Linters y convenciones](open_source/conventions.md)
5 changes: 5 additions & 0 deletions docs/es/book.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gitbook": ">= 3.0.0",
"title": "Documentación Consul",
"description": "Aplicación de Gobierno Abierto y Participación Ciudadana"
}
1 change: 1 addition & 0 deletions docs/es/customization/new_features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Añadir nuevas funcionalidades
1 change: 1 addition & 0 deletions docs/es/customization/overwritting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Adaptar la aplicación
1 change: 1 addition & 0 deletions docs/es/customization/templating.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Interfaz y diseño
1 change: 1 addition & 0 deletions docs/es/customization/translations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Idiomas
1 change: 1 addition & 0 deletions docs/es/forks/communication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Comunicación
1 change: 1 addition & 0 deletions docs/es/forks/create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Crea tu fork
1 change: 1 addition & 0 deletions docs/es/forks/update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Manten tu fork actualizado
42 changes: 42 additions & 0 deletions docs/es/installation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Instalación local

Antes de instalar Consul y empezar a usarlo asegúrate de tener [Ruby 2.3.2](https://www.ruby-lang.org/en/news/2016/11/15/ruby-2-3-2-released/) instalado en tu entorno local.

1. Primero, clona el [repositorio de Consul en Github](https://github.com/consul/consul/):

```
git clone https://github.com/consul/consul.git
```

2. Ve a la carpeta del proyecto e instala las gemas requeridas usando [Bundler](http://bundler.io/):
```
cd consul
bundle install
```

3. Copia los archivos de configuración de ejemplo del entorno dentro de unos nuevos válidos:

```
cp config/database.yml.example config/database.yml
cp config/secrets.yml.example config/secrets.yml
```

4. Ejecuta las siguientes [tareas Rake](https://github.com/ruby/rake) para rellenar tu base de datos local con el mínimo de información necesaria para que la aplicación funcione correctamente:

```
bin/rake db:setup
bin/rake db:dev_seed
RAILS_ENV=test rake db:setup
```

5. Ahora que ya está todo listo puedes ejecutar la aplicación:

```
rails s
```

¡Felicidades! Tu aplicación Consul local estará corriendo en `http://localhost:3000`.

En caso de que quieras acceder a la aplicación local como usuario administrador existe un usuario por defecto con permisos con **nombre de usuario** `[email protected]` y **contraseña** `12345678`.

Si necesitas un usuario específico que pueda realizar acciones como votar, dispones de otro usuario verificado con **nombre de usuario** `[email protected]` y **contraseña** `12345678`.
1 change: 1 addition & 0 deletions docs/es/open_source/code_of_conduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Código de conducta
1 change: 1 addition & 0 deletions docs/es/open_source/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Contribuciones
1 change: 1 addition & 0 deletions docs/es/open_source/conventions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Linters y convenciones
1 change: 1 addition & 0 deletions docs/es/open_source/testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Tests
1 change: 1 addition & 0 deletions docs/es/recomendations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Recomendaciones
1 change: 1 addition & 0 deletions docs/es/servers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Servidores de prueba y producción

0 comments on commit c06bd39

Please sign in to comment.