Update instructions to install Node.js

We're using a specific version of Node.js since commit 55ed40e18.
This commit is contained in:
Javi Martín
2024-08-06 13:55:57 +02:00
parent e666c28c5c
commit 97c59afb0e
2 changed files with 26 additions and 12 deletions

View File

@@ -24,13 +24,20 @@ ruby -v
=> # (it should be the same as the version in the .ruby-version file) => # (it should be the same as the version in the .ruby-version file)
``` ```
4. Copy the example database configuration file: 4. Install the Node.js version we need with your Node.js version manager. If you're using NVM:
```bash
nvm install `cat .node-version`
nvm use `cat .node-version`
```
5. Copy the example database configuration file:
```bash ```bash
cp config/database.yml.example config/database.yml cp config/database.yml.example config/database.yml
``` ```
5. Setup database credentials with your `consul` user in your new `database.yml` file 6. Setup database credentials with your `consul` user in your new `database.yml` file
```bash ```bash
nano config/database.yml nano config/database.yml
@@ -38,25 +45,25 @@ nano config/database.yml
And edit the lines containing `username:` and `password:`, adding your credentials. And edit the lines containing `username:` and `password:`, adding your credentials.
6. Install the project dependencies and create the database: 7. Install the project dependencies and create the database:
```bash ```bash
bin/setup bin/setup
``` ```
7. Run the following [Rake task](https://github.com/ruby/rake) to fill your local database with development data: 8. Run the following [Rake task](https://github.com/ruby/rake) to fill your local database with development data:
```bash ```bash
bin/rake db:dev_seed bin/rake db:dev_seed
``` ```
8. Check everything is fine by running the test suite (beware it might take more than an hour): 9. Check everything is fine by running the test suite (beware it might take more than an hour):
```bash ```bash
bin/rspec bin/rspec
``` ```
9. Now you have all set, run the application: 10. Now you have all set, run the application:
```bash ```bash
bin/rails s bin/rails s

View File

@@ -24,13 +24,20 @@ ruby -v
=> # (debería aparecer la versión mencionada en el fichero .ruby-version) => # (debería aparecer la versión mencionada en el fichero .ruby-version)
``` ```
4. Copia el archivo de ejemplo de configuración de base de datos: 4. Instala la versión de Node.js necesaria con tu gestor de versiones de Node.js. Si usas NVM:
```bash
nvm install `cat .node-version`
nvm use `cat .node-version`
```
5. Copia el archivo de ejemplo de configuración de base de datos:
```bash ```bash
cp config/database.yml.example config/database.yml cp config/database.yml.example config/database.yml
``` ```
5. Configura las credenciales de base de datos con tu usuario `consul` en tu nuevo fichero `database.yml` 6. Configura las credenciales de base de datos con tu usuario `consul` en tu nuevo fichero `database.yml`
```bash ```bash
nano config/database.yml nano config/database.yml
@@ -38,25 +45,25 @@ nano config/database.yml
Y edita las líneas que contienen `username:` y `password:`, añadiendo tus credenciales. Y edita las líneas que contienen `username:` y `password:`, añadiendo tus credenciales.
6. Instala las dependencias del proyecto y crea la base de datos: 7. Instala las dependencias del proyecto y crea la base de datos:
```bash ```bash
bin/setup bin/setup
``` ```
7. Ejecuta la siguiente [tarea Rake](https://github.com/ruby/rake) para rellenar tu base de datos local con datos de desarrollo: 8. Ejecuta la siguiente [tarea Rake](https://github.com/ruby/rake) para rellenar tu base de datos local con datos de desarrollo:
```bash ```bash
bin/rake db:dev_seed bin/rake db:dev_seed
``` ```
8. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que podría tardar más de una hora): 9. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que podría tardar más de una hora):
```bash ```bash
bin/rspec bin/rspec
``` ```
9. Ahora que ya está todo listo puedes ejecutar la aplicación: 10. Ahora que ya está todo listo puedes ejecutar la aplicación:
```bash ```bash
bin/rails s bin/rails s