Git Product home page Git Product logo

frequency's Introduction

Frequency

Frequency is an online Nintendo community that has a discussion board, picture sharing, profiles and a chatroom system to connect gamers.

Installation instructions

It's easy to get started, just run the following commands in your command line of choice. First we need to bundle install to get all of the application's dependencies:

bundle install

Next make sure you have a local instance of Postgres running. If you're on a Mac, the easiest way to do this is to have the Postgres app running.

Then we need to create a new database:

rake db:create

Run all of the pending migrations:

rake db:migrate

Then install ImageMagick which will allow you to process avatars and images locally.

Create a new user account by signing up, then open the rails console with rails c. Then type in:

u = User.first
u.admin = 'true'
u.save

Deployment Notes

We are using a Heroku labs user-env-compile (https://devcenter.heroku.com/articles/labs-user-env-compile) which fixes precompiling assets at deploy time. This means that changing environment variables on Heroku will NO LONGER RECOMPILE THE APP. Hence, the variables you imposed will not be visible in the app yet. This means you need to push separate code to force recompilation.

If asset precompilation ever fails and you have modified any of the assets, you can manually run

heroku run rake assets:precompile

If you ever have to run migrations for a deploy, turn on maintenance mode before deploying:

heroku maintenance:on

And then turn it off once deployment is done

heroku maintenance:off

Testing Memory

We use Oink which lets us test for memory leaks. In order to do this, run:

oink --threshold=1 log/*

or for more detail

oink --format verbose  --threshold=1 log/*

Mac users can run an Apache benchmarking tool which lets you force memory leaks to accrue memory usage:

ab -kc 6 -t 30  http://127.0.0.1:3000/

License

Frequency is released under the MIT License.

frequency's People

Contributors

alainmeier avatar cosmojg avatar dependabot[bot] 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.