Skip to content

๐Ÿ“ฌ๐Ÿ—„ NEW content management system, interface for the API. Written in React and Apollo.

License

Notifications You must be signed in to change notification settings

stuyspec/old-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

About

๐Ÿ“ฌ๐Ÿ—„ NEW content management system, interface for the API. Written in React and Apollo.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published