Coder Social home page Coder Social logo

audalai's Introduction

Audalai

Running on Rails 6 rc1!

Setup

Database setup

Audalai uses PostgreSQL as a database provider in development and production environments. Unlike SQLite, you need to install a pg server as a prerequsite to install the pg gem, which this application needs. You can brew your own pg solution for dev or do what I did (OS X only):

  1. Install Postgres.app
  2. Install Postico -- this is optional, but a nice graphical interface into PostgreSQL.
  3. Make sure the Postgres.app bin folder is in your path:
  • sudo mkdir -p /etc/paths.d && echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
  1. Start a new terminal session and confirm that which psql gives you a valid psql installation.

Application setup

  1. Run bundle in the app directory to install the application gems.
  2. Seed your development database: rails db:setup or rails db:reset
  3. Generate a google app engine keyfile: mkdir config/credentials && gcloud --project audalai iam service-accounts keys create config/credentials/gcloud_service_account_key.json --iam-account [email protected]

Hosting & Deployment

Audalai is hosted on Heroku. To interact with the project via the CLI, install the heroku CLI.

The application is set up to have Rails serve the static front-end via the public folder. To do this, we have added two buildpacks to our Heroku project:

heroku buildpacks:add heroku/nodejs --index 1
heroku buildpacks:add heroku/ruby --index 2

To deploy, first make sure you have a heroku origin set up

heroku git:remote -a audalai

Then simply push to the heroku origin:

git push heroku master

To deploy a non-master branch, you have to deploy it to push it to heroku/master:

git push heroku branch:master

If deploying for the first time, prepare the database

heroku run rake db:migrate
heroku run rake db:seed

audalai's People

Contributors

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