Commit 23159041 authored by mwcm17's avatar mwcm17

Update README.md

parent f77cbc0d
......@@ -24,27 +24,45 @@ along with portalmec. If not, see <http://www.gnu.org/licenses/>.
## Requirements
* rvm
* Using rvm you will install ruby "2.3.1"
* ruby "2.3.1"
* ruby "2.3.1"
* Dspace server "5.x"
* Postgres >=9.4
* If you will install Dspace, it is recommended to use Postgres "9.4"
* Postgres (>= 9.6, <=10)
* If you will install Dspace, it is recommended to use Postgres "9.6"
* Elasticsearch "6.2.4"
* Redis
* nvm
* Using nvm you will install Node.js "8.10.0"
## NVM and Node.js
For install NVM and Node.js, use this follwing commands:
```
$ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
```
```
$ source ~/.bashrc
```
```
$ nvm install 8.10.0
```
## Postgres
After the first install, you can run this commands:
* ``` sudo passwd postgres ```
* ```su postgres```
* ``` psql -c "ALTER USER postgres WITH PASSWORD 'your_new_password'" -d template1 ```
* ``` createuser -h localhost -U postgres -d [user_db] ```
* ``` su postgres```
* ``` psql -c "ALTER USER postgres WITH PASSWORD '$PASSWORD'" -d template1 ```
* ``` createuser -h localhost -U postgres -d $USER_DB ```
* ``` psql -c "ALTER USER $USER_DB WITH PASSWORD '$PASSWORD'" -d template1 ```
Note: You can ask for the database dump for someone in the project.
You need to modify the file "/etc/postgresql/10/main/pg_hba.conf", the modification is
* comment all lines with "peer" and copy them replacing "peer" with "md5".
* comment the 1st and 2nd lines with "peer" and copy them replacing "peer" with "md5".
After this, run this command:
......@@ -76,6 +94,7 @@ After this setup, open the configuration files inside the project repository and
* config/initializers/gitlab.rb: change your gitlab host for bug reports and set env var with private token. ( $ export GITLAB_PORTALMEC_PRIVATE_TOKEN=131237128937128937 )
## Install
After installed the requeriments, the first you will need to do is run:
......@@ -88,7 +107,7 @@ This command will install all required gems for the project.
After all gems were installed succesfuly. Please create the database using the following commands:
* ``` rake db:create ```
* If you have the dump of the database, use it before db:migrate.
* To use the dump, run this commands: ```psql -U [database_user] -d [database_name] < dump_name.sql ```
* To use the dump, run this commands: ```psql -U $DATABASE_USER -d $DATABASE_NAME < $DATABASE_PATH/dump_name.sql ```
* ``` rake db:migrate ```
``` Note ``` : You need to load the dump in the database_dev.
......@@ -125,7 +144,13 @@ Se a rotina de testes descrita pelo rake test for arrumada, o comando a baixo fu
### Running tests suite
For tests, TestUnit is used, and to run it
``` bundle exec rake test ```-->
For tests, run this command:
For tests, run this commands:
* ``` export DSPACE_LOGIN=your_login ```
* ``` export DSPACE_PASS=your_password ```
* ``` source ~/.bashrc ```
* ``` bundle exec rake spec:acceptance ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment