Skip to content

Commit 5761f33

Browse files
authored
Merge pull request #18 from rubyforgood/add-readme
Update README with setup and testing instructions
2 parents ea5b107 + 92ad025 commit 5761f33

1 file changed

Lines changed: 44 additions & 13 deletions

File tree

‎README.md‎

Lines changed: 44 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,55 @@
1-
# README
1+
# SkillRx Beacon
22

3-
This README would normally document whatever steps are necessary to get the
4-
application up and running.
3+
SkillRx Beacon is a Ruby on Rails API application that manages content synchronisation for edge devices (Beacons) deployed in low-resource medical settings. It replaces the existing Azure-based distribution system with direct device-to-CMS communication.
54

6-
Things you may want to cover:
5+
Beacons are physical devices deployed in healthcare facilities globally that broadcast local Wi-Fi networks, allowing healthcare workers to access training materials via their phones without internet connectivity. This application handles device registration, content assignment, and sync orchestration.
76

8-
* Ruby version
7+
# Ruby for Good
98

10-
* System dependencies
9+
SkillRx Beacon is one of many projects initiated and run by Ruby for Good. You can find out more about Ruby for Good at https://rubyforgood.org.
1110

12-
* Configuration
11+
# Welcome Contributors!
1312

14-
* Database creation
13+
[Contribution guidelines for this project](CONTRIBUTING.md)
1514

16-
* Database initialization
15+
# Install & Setup
1716

18-
* How to run the test suite
17+
Clone the codebase
18+
```
19+
git clone git@github.com:rubyforgood/skillrx-beacon.git
20+
```
1921

20-
* Services (job queues, cache servers, search engines, etc.)
22+
Run the setup script to prepare the DB and assets
23+
```sh
24+
bin/setup
25+
```
2126

22-
* Deployment instructions
27+
To run the app locally, use:
28+
```
29+
bin/dev
30+
```
2331

24-
* ...
32+
# Running specs
33+
34+
```sh
35+
# Default: Run all spec files
36+
$ bundle exec rspec
37+
38+
# Run all spec files in a single directory
39+
$ bundle exec rspec spec/models
40+
41+
# Run a single spec file
42+
$ bundle exec rspec spec/requests/api/v1/devices_spec.rb
43+
44+
# See all options for running specs
45+
$ bundle exec rspec --help
46+
```
47+
48+
# Testing
49+
50+
This project uses:
51+
* `rspec` for testing
52+
* `shoulda-matchers` for expectations
53+
* `factory_bot` for making records
54+
55+
To run tests, simply use `bin/rspec`.

0 commit comments

Comments
 (0)