Giter Club home page Giter Club logo

rails-posterr's Introduction

Rails Posterr

Contents


๐Ÿ’ป About the project

Posterr is a social media platform, where you can create posts, follow other people, and interact with them.


Requirements

  • Git
  • Ruby 2.7.2
  • Rails 6.0.3.5
  • PostgreSQL
  • Postman or Insomnia

โš™๏ธ Features

This template comes with:

  • Schema
    • Users table
    • Admin users table
    • Posts Table
  • Endpoints
    • CRUD for Posts
    • Sign up with user credentials
    • Sign in with user credentials
    • Sign out
    • Reset password
    • Get and update user profile
  • Administration panel for users
  • Rspec tests
  • Code quality tools
  • API documentation following https://apiblueprint.org/
  • Docker support
  • Exception Tracking
  • RSpec API Doc Generator

๐Ÿš€ How to use

# Clone this repository
$ git clone git@github.com:luiz-m-affonso/rails-posterr

# Run script for install dependencies
$ sh start.sh

How to use with docker ๐ŸŽฒ

  1. Have docker and docker-compose installed (You can check this by doing docker -v and docker-compose -v)
  2. Modify the following lines in the database.yml file:
default: &default
  adapter: postgresql
  encoding: unicode
  pool: 5
  username: postgres
  password: postgres
  host: db
  port: 5432
  1. Generate a secret key for the app by running docker-compose run --rm --entrypoint="" web rake secret, copy it and add it in your environment variables.
  2. Update the default database configuration in the config/database.yml file to point to the docker-compose database:
    1. Set username: postgres
    2. Set password: postgres
    3. Set host: db
  3. Run docker-compose run --rm --entrypoint="" web rails db:create db:migrate.
  4. Run the application with docker-compose up.

API Docs

Code quality

With bundle exec rails code:analysis you can run the code analysis tool, you can omit rules with:

  • Rubocop Edit .rubocop.yml
  • Reek Edit config.reek
  • Rails Best Practices Edit config/rails_best_practices.yml
  • Brakeman Run brakeman -I to generate config/brakeman.ignore
  • Bullet You can add exceptions to a bullet initializer or in the controller

Planning

Self Critique & Scaling

rails-posterr's People

Contributors

luiz-m-affonso avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.