GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - asu-cis-capstone/nightowl: repo for project night owl

BranchesTags
Open more actions menu

Latest commit

 

History

118 Commits
118 Commits

Folders and files

NameName
Last commit message
Last commit date
_frontend
_frontend
 
 
_misc
_misc
 
 
app
app
 
 
bin
bin
 
 
config
config
 
 
db
db
 
 
lib
lib
 
 
log
log
 
 
public
public
 
 
test
test
 
 
.gitignore
.gitignore
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
README.rdoc
README.rdoc
 
 
Rakefile
Rakefile
 
 
config.ru
config.ru
 
 

Repository files navigation

#Couche-Board

Couche-Tard Dashboard
current release: v1.0

##Overview

Couche-Board is a browser-based GUI dashboard that will allow Couche-Tard management to view company metrics.

##Official Site

Visit couche-board.herokuapp.com to use our version of the Couche-Board application.

##Trello

https://trello.com/b/k3IplRah/440-group#

login information:

email: [email protected] password: hmniaraih2ayaq

##Development Environment

###Cloud9 IDE

For the sake of a consistent environment, we recommend that you use the browser-based IDE, Cloud9, as your development environment. Cloud9 is a very useful service because it gives developers access to a cloud-based environment with commonly used tools and software.

Here is list of instructions to get started with Cloud9:

  1. Sign up for an account at c9.io
  2. Go to your dashboard
  3. Click the "Create New Workspace" button in the top left and select "Clone From URL"
  4. In the dialog box that appears:
  • Enter https://github.com/asu-cis-capstone/nightowl into the Source URL field
  • Leave every other field as-is
  • Click "Create"
  1. Wait for Cloud9 to provision your new workspace
  2. Select your workspace from the left-hand navigation
  3. Click "START EDITING"
  4. Switch to the new tab where your workspace is loaded

You will see in your workspace that you have the repository loaded into the file explorer along the left side.

###Technology Stack

  • Ubuntu 14.04
  • Phusion Passenger
  • PostgreSQL 9.3.5
  • Ruby 2.1.5
  • Rails 4.2.0

This is the stack used in production. For development and testing, we will use this stack with the exception of Phusion Passenger, in which case the default WeBrick web server will suffice.

By using Cloud9, you have most of the software in the technology stack installed. The exception being the correct version of Rails, which you will install with the help of Bundler and RVM in the next section.

###Rails/Dependency Installation

At this time, Cloud9 has Rails 4.1.6 preinstalled, but we use Rails 4.2.0, so it's best to have that version instead. In this section, we will install Rails along with all the other project dependencies in our Cloud9 environment.

RVM (Ruby enVironment Manager) is a useful tool to pick and choose which ruby version and set of gems (a.k.a. gemsets) that you would like to have loaded in your environment. RVM is preinstalled in your Cloud9 environment, so we can start using it immediately.

# Create a project specific gemset
$ rvm gemset create nightowl

# Switch to the gemset
$ rvm gemset use nightowl

# rails4 should have been the gemset you were in before the switch to nightowl
# Delete that gemset to free up the limited disk space you have in Cloud9
$ rvm gemset delete rails4

# Use Bundler to install all the non-production group dependencies in the Gemfile, which includes Rails 4.2.0
# Make sure to run this command in the root directory of the Rails app that contains the Gemfile
$ bundle install --without production

##Database Setup

Cloud9 comes preinstalled with PostgreSQL. Therefore, it's not necessary to install it, but we still have to configure it to work with Couch-Board.

Start the database server:

$ sudo service postgresql start

You need to complete two configuration tasks in order to create the Couche-Board databases:

  1. Create an "ubuntu" role
  2. Change the default encoding scheme to UTF8

The steps to accomplish them will follow in a bit, but first start up the client Postgres interactive prompt in the terminal:

$ sudo sudo -u postgres psql

# Below is what you should see after the command
postgres=#

We will accomplish the tasks by inputting some SQL statements. Now, for accomplishing the tasks:

  1. Create an "ubuntu" role

Enter the following SQL statement:

CREATE ROLE ubuntu CREATEDB LOGIN;
  1. Change the default encoding scheme to UTF8

Enter the following SQL statements:

UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';

DROP DATABASE template1;

CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';

UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';

# Below is a Postgres meta command
\c template1

VACUUM FREEZE;

Now you can create the Couche-Board databases. Run the following command:

$ bundle exec rake db:create:all

Upcoming Populating the database

##Test Execution

To execute the tests within the test/ directory, simply run:

$ rake test

##Authors

  • Patrick Morong
  • Vincent Nguyen
  • Jordan Parra
  • Rachel Vaney

##Videos https://www.youtube.com/watch?v=_DsjgyGgHZA

##Thanks

  • Ric Spargo
  • Joe Clark

About

repo for project night owl

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.