Skip to content

sfunston/grader-aide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

App testing logins

'Student' group user: student pass: student

'Grader' group user: grader pass: grader

REST Contract

https://goo.gl/Y846mt

MongoDB Container

host: mongo.parkerhill.me port: 27017 authdb: admin user: cloud9 pass: 2MJp3b3DpMmN7W48

TO CONNECT $ mongo -u cloud9 -p --authenticationDatabase admin --host mongo.parkerhill.me

EXAMPLE COMMANDS db.createUser( { user: "cloud9", pwd: "2MJp3b3DpMmN7W48", roles: [ { role: "userAdminAnyDatabase", db: "admin" }, { role: "readWriteAnyDatabase", db: "admin" }, { role: "dbAdminAnyDatabase", db: "admin" }, { role: "clusterAdmin", db: "admin" } ] } );

db.updateUser(
	"cloud9",
	{
		roles: [
              { role: "userAdminAnyDatabase", db: "admin" },
              { role: "readWriteAnyDatabase", db: "admin" },
              { role: "dbAdminAnyDatabase", db: "admin" },
              { role: "clusterAdmin", db: "admin" }
		]
	}
);

Running Selenium tests

Make sure to have Ruby installed https://www.ruby-lang.org/en/downloads/

1. Install bundler
gem install bundler

2. Install geckodriver
npm install geckodriver

3. Change to test directory
cd client/test

4. Install gems
bundle install

5. Run test file
Example: rspec login-test.rb	 

Final Project

Client
[] Vue routing
[x] Copy assignment comments(clipboard.js)
[x] Testing (selenium)
[x] Authentication
[x] Student view and Grader View
[x] Grader must be able to add, delete, and change courses, and list assignments within a course.

Server
[] Testing
      - positive and negative test
      - Mocha + Chai (+ Sinon TBD)
      - Must test REST (supertest)
[x] MongoDB running in a Docker container
[] Routers used by app.js
      - router serving files from public
      - router serving course REST via Mongo collections
      - router serving assignment REST via Mongo Documents within a collection
[] Security
[x] Authentication, how is up to you // cleartext
[] Vue CLI/single page components

Repo
[x] Github
      - all code
      - readme with example code and/or usage

Team Milestone Checklist

[x] save (storing the json) via axios
[x] recover/restore deleted rule in memory stack
[x] edit rule
[x] edit name
[x] edit totalPts
[x] list of comments (no points up or down)
[x] edit list of comments (no points up or down)
[x] delete list of comments/recovering
[x] create a new assignment

Setting up Git

1. Install git if you haven't already - https://git-scm.com/download/win

2. Add repository
git remote add origin https://github.com/sfunston/grader-aide.git

3. Change to desired local src directory
cd /my/src/folder

4. Do initial pull to get files (same command for subsequent pulls)
git pull -u origin master

For subsequent commits
git commit -m "Comment for this commit"
git push -u origin master

To add a file to git for tracking:
git add <filename>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.8%
  • JavaScript 35.5%
  • Ruby 7.9%
  • CSS 3.8%