Skip to content

Repository files navigation

Apptus

https://apptus.online

Server and PostgreSQL database Hosted on Railway, runs on Ruby 3.2.1, Rails 7, MailerSend for emails, Mailcatcher for development. Application performance monitoring sponsored by AppSignal.

Development Environment Variables

NameValue/Description
PGUSERUsername of your local postgres user
PGPASSWORDPassword of respective user
APPTUS_EMAIL_HOSTapptus.online

Test Environment Variables

NameValue/Description
PGUSERUsername of your local postgres user
PGPASSWORDPassword of respective user
APPTUS_EMAIL_HOSTapptus.online
RAILS_ENVtest

Production Environment Variables

NameValue/Description
RAILS_ENVproduction
RAILS_MASTER_KEYSecret key
RAILS_SERVE_STATIC_FILES1
APPTUS_HOSTapptus.online
APPTUS_EMAIL_HOSTapptus.online
REDIS_URL${{Redis.REDIS_URL}} (Railway thing)
DATABASE_URL${{Postgres.DATABASE_PRIVATE_URL}} (Railway thing)

Contributing

Getting Started

Firstly, fork this repo to your GitHub account.

# Clone to your local machine# Replace `YOURUSERNAME` with your GitHub username
$ git clone 'https://github.com/YOURUSERNAME/Apptus.git'
$ cd Apptus
# Create new branch for your changes
$ git checkout dev
# Replace `my-new-feature` with something more descriptive
$ git checkout -b my-new-feature
# Install dependencies
$ bundle install
# Set dev environment variables now, before next commands# Set up database
$ rails db:setup
# Run mailcatcher
$ gem install mailcatcher # If not already installed
$ mailcatcher
# Run the server
$ rails s

Running tests

Make sure all tests run with no errors or warnings before making a PR. Run these tests with the Test Environment Variables listed above.

SimpleCov is used to check code coverage, run $ COVERAGE=1 rails test to generate a report.

$ rails test
$ rails test:system
$ bundle exec bundler-audit --update
$ bundle exec brakeman -q -w2
$ bundle exec rubocop --parallel

Deploying

main is production. All changes should go through dev branch first (via a PR).

About

Cactus (green) themed group chat web app

Resources

Code of conduct

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages