An open API service indexing awesome lists of open source software.

https://github.com/alybadawy/auth-horus

An Authorization framework for Rails 8+ API-only applications
https://github.com/alybadawy/auth-horus

api api-only authentication jwt rails rails8 ruby-on-rails

Last synced: about 2 months ago
JSON representation

An Authorization framework for Rails 8+ API-only applications

Awesome Lists containing this project

README

          

# Auth Horus

A secure authentication system built with Ruby on Rails, featuring comprehensive testing and robust security measures.

## ๐Ÿš€ Quick Start

### Prerequisites

- Ruby (per `.ruby-version`)
- PostgreSQL

### Installation

1. **Clone the repository**

```bash
git clone https://github.com/alybadawy/auth-horus.git
cd auth-horus
```

2. **Install dependencies**

```bash
bundle install
```

3. **Set up database**
```bash
bundle exec rails db:create
bundle exec rails db:schema:load
```

## ๐Ÿ”ง Development

Start the development server:

```bash
bin/dev
```

## ๐Ÿงช Testing

Run the test suite:

```bash
bundle exec rspec
```

> ๐Ÿ“Š Minimum test coverage requirement: 95%

## ๐Ÿ›ก๏ธ Quality Assurance

### Code Style

```bash
bin/rubocop
```

### Security Scan

```bash
bin/brakeman
```

## ๐Ÿ”„ CI/CD

Our GitHub Actions workflow automatically runs:

- Security vulnerability scans
- Code style checks
- Test suite
- Coverage reports

## ๐Ÿ—„๏ธ Database Configuration

PostgreSQL environment variables:

```bash
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=test_db
```

## ๐Ÿ”‘ Key Features

- Secure authentication system
- Comprehensive test coverage
- Static code analysis
- Security vulnerability scanning
- Automated CI/CD pipeline

## ๐Ÿ“ License

Licensed under the GNU General Public License v2.0. See [LICENSE](LICENSE) for details.

## ๐Ÿค Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

---

Made with โค๏ธ using Ruby on Rails
Developed by Aly Badawy

![Auth Horus Logo](https://github.com/AlyBadawy/AlyBadawy/assets/1198568/471e5332-f8d0-4b78-a333-7e207780ecc1)