Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

The RIN

THE RIN WEBSITE

Refugee Invesment Network website

proving that refugees are investables

#Installation

  • fork the repository

  • clone your own instance to your local disk

  • install node.js and npm latest version globlally

you will need to provide the google map api key

  • navigate to
    /client/src/config
  • rename the file map.config.1.js to map.config.js and put the map api key inside it

  • navigate to the project directory

  • run this commands to install node dependencies

    npm install

it will install the server dependencies and the client dependencies

the project uses environment variables you should define

    RDS_HOSTNAME=********
    RDS_USERNAME=********
    RDS_PASSWORD=********
    RDS_PORT=****
    AWS_ACCESS_KEY_ID=***********
    AWS_SECRET_ACCESS_KEY=***********
    RDS_DATABASE=***********
    S3_BUCKET_NAME=***********
    HASH_SECRET=***********

open config file in /config/config.js and change development settings to your local settings

development: {
    username: "*****",
    password: "********",
    database: "******",
    host: "********",
    dialect: "********"
}

now you need to setup the database

##### start by installing sequelize cli globally on you computer
    $ npm install -g sequelize-cli

create the database using this command

    $ sequelize db:create

create the tables using this command

    $ sequelize db:migrate

fill the tables with content using this command

    $ sequelize db:seed:all
  • to serve the static react app run this command
    npm run dev
  • to run the node server run this command
    npm start
  • to run the nodemon development that watches for changes run this command
    npm run watch