Giter Site home page Giter Site logo

kofronpi / tips-on-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asm-products/tips-on-rails

0.0 1.0 0.0 353 KB

Professional network for Rails developers

Home Page: https://assembly.com/tips-on-rails

License: GNU Affero General Public License v3.0

Ruby 82.99% CoffeeScript 4.08% JavaScript 0.79% CSS 12.14%

tips-on-rails's Introduction

Tips on Rails

Open Tasks

Ever been in a situation where your just not sure where to start? How to implement a specific part of your rails application? Completely mystified about how to test for a specific behavior?

Tips on Rails was made for people just like you. It's here as a tool to enable Rails users to learn, post, and socialize about the latest and greatest tips out there!

Getting started with Tips on Rails

Tips on Rails is ran on the Thin web server using environment variables. You'll need to complete the following steps to get it running.

Create .env file, with the following information:

PORT=5100 (your port number could be any four-digits)
RACK_ENV=development
DB_DATABASE=TipsonRails_development
DB_USERNAME=localdev
DB_PASSWORD=password 

Create file Procfile.dev, with the following information:

web: bundle exec rails server thin -p $PORT -e $RACK_ENV

In the command line, run:

bundle

Make sure you have the foreman gem instaled:

foreman

If the Terminal tells you that it can't find it, you'll have to get it. Go to https://github.com/ddollar/foreman and follow the instructions.

Get your development and test databases ready:

foreman run rake db:setup
foreman run rake db:migrate RAILS_ENV=test

Start the application:

foreman start -f Procfile.dev

Go to:

localhost:5100/ (use the port number you specified in the .env file)

Generating Faker data

To generate Faker data

We have developed fake data for the database, so you can see in real time what the site would like with users. To access this fake data, you need to run:

foreman run rake db:populate

Professional network for Rails developers

This is a product being built by the Assembly community. You can help push this idea forward by visiting https://assembly.com/tips-on-rails.

How Assembly Works

Assembly products are like open-source and made with contributions from the community. Assembly handles the boring stuff like hosting, support, financing, legal, etc. Once the product launches we collect the revenue and split the profits amongst the contributors.

Visit https://assembly.com to learn more.

tips-on-rails's People

Contributors

mrbeardface avatar ohlincik avatar mandabrown avatar machuga avatar

Watchers

Pierre-Alexandre Kofron 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.