Content Management System. This time done right.
- Clone the repo (default branch is
develop
):
git clone https://github.com/stuyspec/cms
- Enter the repo:
cd cms
- Install the node packages used in this project with Node Package Manager:
npm install
- Build and begin a live reload server on
http://localhost:8080
:
gulp
To set up the development data server, follow the instructions on our the README of our API.
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.