Skip to content

toppin-app/backend

Repository files navigation

Toppin Rails

A Ruby on Rails backend application for managing a dating platform. This API provides all the necessary endpoints for user matching, profile management, messaging, and real-time notifications.

Requirements

  • Ruby 3.0.6
  • MySQL
  • Node.js and Yarn
  • Docker (optional)

System Dependencies

  • MySQL Server
  • Redis (optional, for Action Cable)

Setup Instructions

Local Development

  1. Clone the repository:
git clone [repository-url]
cd toppin_rails
  1. Install Ruby dependencies:
bundle install
  1. Install JavaScript dependencies:
yarn install
  1. Configure the database:
cp config/database.yml.example config/database.yml
# Edit config/database.yml with your database credentials
  1. Create and migrate the database:
rails db:create db:migrate
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
  1. Start the development server:
rails server

Docker Setup

  1. Build and start the containers:
docker-compose up --build

The application will be available at http://localhost:3000

Testing

Run the test suite:

rails test

Key Features

  • User authentication with Devise and JWT
  • File uploads with Carrierwave and AWS S3
  • Email notifications with Mailjet
  • SMS notifications with Twilio
  • Geocoding capabilities
  • Push notifications support
  • API endpoints with CORS support
  • Pagination and search functionality

Project Structure

  • app/ - Application code
  • config/ - Configuration files
  • db/ - Database files and migrations
  • lib/ - Library modules
  • public/ - Public assets
  • test/ - Test files
  • vendor/ - Vendor assets

Deployment

The application can be deployed using Docker:

docker-compose -f docker-compose.prod.yml up --build

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

License

[Add your license information here]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published