Coder Social home page Coder Social logo

ahmedhamid13 / college-get-together Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.23 MB

Home Page: https://college-get-together.onrender.com

Ruby 46.61% JavaScript 1.07% SCSS 35.83% CSS 0.19% HTML 15.43% Haml 0.87%
ruby ruby-on-rails graphql sass postgresql

college-get-together's Introduction

Prerequisites

You should have ruby, rails and postgres installed. If you don't, install ruby and rails from here and postgres from here.

Installing

  1. Download the zipped file and unzip it or Clone it
    $ git clone https://github.com/ahmedhamid13/college-get-together
  2. Run this command to install the packages needed
    $ bundle install
  3. Run this command to create the database and migrate tables
    $ rake db:create db:migrate
  4. Run this command to seed the database with data
    $ rake db:seed
  5. Run this command to open the server
    $ rails s
  • you can login with super admin user by (email: [email protected], password: admin123).

  • you can login with admin user by (email: [email protected], password: 123456), or create new admin from admin dashboard.

  • you can login with premium user by (email: [email protected], password: 123456), or create new premium from registration.

  • you can login with normal user by (email: [email protected], password: 123456), or create new normal from registration.

Technologies

  • Ruby on Rails => Full Stack Application.
  • PostgreSQL => SQL Database.
  • GraphQL => Query Language.
  • Heroku => PaaS.
  • Sass => Stylesheet - Structure.
  • Ruby Gems => Ruby's packages as: (devise, cancancan, ahoy, friendly_id, sentry, i18n, blazer, rails_performance and rails_admin).

GraphQL Examples

Queries

All

{
  fetchComments {
    id
    body
    user {
      name
      email
    }
    post {
      title
      body
    }
  }
}

Find

{
  fetchComment(id: 1) {
    id
    body
    user {
      name
      email
    }
    post {
      title
      body
    }
  }
}

Mutation

Create

mutation {
  createComment(input: { params: { body: "body", postId: 1, userId: 1 } }) {
    comment {
      id
      body
    }
  }
}

Update

mutation {
  updateComment(
    input: { id: 1, params: { body: "body22", postId: 1, userId: 1 } }
  ) {
    comment {
      id
      body
    }
  }
}

Destroy

mutation {
  destroyComment(input: { id: 1 }) {
    comment {
      id
      body
    }
  }
}

QR-Code To Deployment web

college together qr code

License

MIT License

Copyright (c) 2021 Ahmed Abdelhamid

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.