Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.32 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.32 KB

cms

Content Management System. This time done right.

Getting started

  1. Clone the repo (default branch is develop):
git clone https://github.com/stuyspec/cms
  1. Enter the repo:
cd cms
  1. Install the node packages used in this project with Node Package Manager:
npm install
  1. Build and begin a live reload server on http://localhost:8080:
gulp

Running the app

To set up the development data server, follow the instructions on our the README of our API.

Admin Level

To be an admin in the database is to have a security_level of greater than 0 (there are only 0 and 1 currently). Only admins can POST, PATCH, and DELETE. Any user can GET. Since every user at creation is given a security_level of 0, developers must use rails console to change the security_level of any user.

The Rails console lets you interact with the Rails API from the command line with Ruby. For instance:

> u = User.find_by(first_name: 'Jason')
> u.update(security_level: 1)

Accessing rails console in a locally hosted API is trivial, but to use it with our production database requires more instruction.