Giter Site home page Giter Site logo

forty-web's Introduction

Forty Web CircleCI

Forty is one of those boring Rails applications that uses a bit of React when the interactions are tricky and call for it. It's a fun project and I work hard to make the code readable and a good example of how I think Rails apps should be built!

Install

Start by cloning the project and then run the setup script:

$ ./bin/setup

This script will ensure you have the requirements and nudge you to setup things that you don't. Then it'll go through the work of getting your environment setup and ready to work.

Start things up

I have a series of scripts I use to start things up but if you just want to boot Rails you can do this:

$ ./bin/server

I use tmux to manage the various processes so I end up running something more like this:

# in one window
$ ./bin/server
$ ./bin/webpack-dev-server
$ bundle exec guard

# in another window
$ ./bin/console
$ bundle exec rails db

So in the first window I'll have my Rails server and dev webpack server going with guard setup to reload my browser. Then in the second window I have a Rails console and a psql console. That's livin' friends!

Run tests

I have the default rake task setup to run everything:

$ bundle exec rake

This is how CI runs so that's the best way to ensure you've got a green build locally.

If you wanted to run them individually, that might look something like this:

$ yarn prettier-check && yarn type-check && yarn lint && yarn test && bundle exec rubocop && bundle exec rspec

But who has the time to type all that out??

Deployment

This project is setup to deploy master to staging and then one has to promote staging to production manually:

$ ./bin/promote

Or you can just use the Heroku interface too if you want.

Getting data to play with

I wrote a script for this:

$ ./bin/sync_data

This task will copy production data to staging and then copy staging data down to your local database. This isn't something you get to do, it's just for meeee!

forty-web's People

Contributors

jonallured 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.