The development branch is main
.
This is the default branch that all Pull Requests (PR) should be made against.
Requirements:
Please follow instructions below to install project.
-
Fork this repository to your own GitHub account
-
Clone it to your local device
-
Create a new branch:
git checkout -b YOUR_BRANCH_NAME
-
Install the dependencies with:
make setup
-
Copy the environment variables:
cp .env.example .env
Set up your settings in
.env
file.
-
Run the database in the first terminal session:
make db-start
-
Open another terminal session
-
Apply the database migrations:
make db-migrate
-
Populate the development database with predefined data:
make db-seed
-
Run the web server:
make run
The last command will start the web server on http://localhost:3000/.
To check the formatting of your code:
make lint
If you get errors, you can fix them with:
make fix
-
Run the test database in the first terminal session:
make test-db-start
-
Run the tests suite in the second terminal session:
make test