Coder Social home page Coder Social logo

ahmedash95 / rubyfunctions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emad-elsaid/rubyfunctions

0.0 1.0 0.0 200 KB

Like Rubygems.org but for Ruby functions

Home Page: https://www.rubyfunctions.com/

Ruby 58.89% JavaScript 7.94% CSS 5.41% HTML 25.02% Shell 1.83% Dockerfile 0.92%

rubyfunctions's Introduction

RUBY FUNCTIONS

Here is the challenge:

  1. Write a useful Ruby function
  2. Depends only on Ruby core and standard lib

This is a web application to have a community around this idea, We participate and share these functions to learn from each other and use it if we need to.

Why?

  1. It would be nice if you're looking for a function that validate URL/Email for example and you get to a website just to get this function, no external libraries needed, just the function use it.
  2. Show your creativity using just ruby to deliver something useful, how far can you get with just that?
  3. We can learn a lot from each other just by sharing useful functions we write.
  4. You get fast feedback on a small snippet of code.

Prerequisite

  1. Ruby 2.6.3
  2. Yarn
  3. Postgres server

Documentation you'll needed

  1. Ruby docs https://devdocs.io/ruby~2.5/
  2. Rails docs https://devdocs.io/rails~6.0/
  3. Bulma documentation https://bulma.io/documentation/
  4. Font awesome icons list https://fontawesome.com/icons

Setting up the project

  1. cd to src
  2. Create a github application for github login feature from here and set the callback URL to http://localhost:3000/github/new
  3. copy .env.sample to .env and fill in the non-production variables and remove the rest.
  4. make sure the variables in .env file is loaded to your shell, you can use autoenv for that
  5. review config/database.yml development section to make sure it connects to your postgres server
  6. run rails db:setup
  7. make sure rspec passes
  8. run the server with rails s
  9. have run developing your feature

Things the project is trying to avoid

  1. Having unncessary dependencies
  2. Javascript
  3. Saving user emails or access tokens
  4. Uploading files

How to contibute

  1. Fork this repo
  2. Clone the fork to your machine
  3. Open an issue with the your idea and how you're gonna solve it
  4. Agree on a final solution to your idea and start implementing it
  5. Create a new branch and commit your changes
  6. Open a pull request linking to the issue

Quality guidelines

  1. Write good and readable tests
  2. Make sure existing specs passes with rspec command
  3. Make sure rubocop passes with rubocop command
  4. Try to be as minimal as possible

rubyfunctions's People

Contributors

ahmedash95 avatar emad-elsaid avatar

Watchers

 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.