Skip to content

Commit

Permalink
Update README instructions for testing and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leesheppard committed Nov 2, 2024
1 parent d799e09 commit d95c86f
Showing 1 changed file with 46 additions and 19 deletions.
65 changes: 46 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,63 @@
[![forthebadge](https://forthebadge.com/images/badges/made-with-ruby.svg)](https://forthebadge.com)

# Ruby Australia Website
[![CI](https://github.com/rubyaustralia/ruby_au/actions/workflows/ci.yml/badge.svg)](https://github.com/rubyaustralia/ruby_au/actions/workflows/ci.yml)

Welcome to the Ruby Australia website repository. All contributions are encouraged.

Website for Ruby Australia
The slack channel for the website working group can be found
[here](https://rubyau.slack.com/messages/ruby-au-website/)
[here](https://rubyau.slack.com/messages/ruby-au-website/).

## Required Environment / Minimum Setup

- Install the Ruby version (`3.3.5`).
- Install PostgreSQL.
- Install Bundler.
- `bundle install`
- Install yarn.
- `yarn install`
- Modify `config/database.yml` as needed.
- `rake db:setup`
- [Ruby version (`3.3.5`)](https://www.ruby-lang.org/)
- [PostgreSQL](https://www.postgresql.org/)
- [Bundler](https://bundler.io/)
- [Yarn](https://yarnpkg.com/)

## Configuration

None (yet).
Clone the project, run the following commands:

## Testing
```bash
$ git clone https://github.com/rubyaustralia/ruby_au.git
$ cd ruby_au
```

A full test (Rspec and Rubocop) including database migrations can be run with:
First time set up of the environment, this will bundle gems and install the JS dependencies as well as prepare the database:

`bin/rails test`
```bash
$ bin/rails db:setup
```

Tests are written in RSpec. They are located in the `spec` directory and can be run with:
Installing dependencies post set up (after each `git pull`):

`bin/rspec`
```bash
$ bundle install
$ yarn install
```

## Development Environment
## Running the Development Environment

This command will run using Foreman and start the app using both webpack and puma.

```bash
$ bin/dev
```

## Running the Test Environment

A full test (Rspec and Rubocop) including preparing the database and running migrations can be run with:

```bash
$ bin/tests
```

Tests are written in RSpec. They are located in the `spec` directory and can be run with:

```bash
$ bin/rspec
```

## Production Environment

Expand All @@ -60,5 +84,8 @@ Content is Copyright 2016 by Ruby Australia, All rights reserved.

## Logotype licence

"Ruby Australia" 'Gem' and Typographic logo are Copyright 2016 by Ruby Australia,
All rights reserved.
"Ruby Australia" 'Gem' and Typographic logo are Copyright 2016 by Ruby Australia, all rights reserved.

## Contact

For any questions or feedback, please contact the website working group on [Slack](https://rubyau.slack.com/).

0 comments on commit d95c86f

Please sign in to comment.