---
# System prepended metadata

title: Quadvendor Installation

---

# Quadvendor Installation
## Prerequisites
- Install yarn
- Install nodejs v 16.13.2


---
After cloning the project to your machine, navigate to `bin/setup` inside the project. Here you'll find instructions to setup the project. As dictated in the file, you can proceed and do the following below:
- Run `bundle`
- Run `bin/rails db:prepare`
- Run `bin/rails log:clear tmp:clear`
- Run`bin/rails restart`
There is a `seeds.rb` which will pre-populate your database, which contains the credentials of the project
- Run `yarn` to install javascript dependencies.

# Running the project
- Open 4 instances of your terminal
- On the 1st terminal run, `redis-server`
- On the 2nd terminal run, `bin/webpack-dev-server`
- On the 3rd terminal run, `rails server` (you are free to choose/customize the port number), eg `rails s -p 3001`
- On the 4th terminal, run `rails console` to run `AccountSetting.create(account_id: 1)`. This command is only run once so you can `exit` the terminal.


# NB
The above assumes you already have PostgreSQL(project database) with a username and redis installed. We are using `redis` for Action Cable
