Giter Site home page Giter Site logo

cas_web's Introduction

#CAS Web

A Web service for viewing the risk of commits to a repository

##Dependencies ###Environment May work with older versions, but they are untested...

  • node.js >= 10.8
  • npm >= 1.2.23

###Node Packages These are managed in the package.json file in the project root. Please see this file for specific dependencies. Most are required by Sails.js.

Grunt and Bower are both required to be installed globally (on the machine), while Forever is optional, but highly recommended:

$ sudo npm install -g grunt-cli
$ sudo npm install -g bower
$ sudo npm install -g forever

(You can install these locally, but it is not reccommend as you will have to prepend all of your commands with ./node_modules/PACKAGE_NAME/bin/PACKAGE_NAME as the commands will not be in your PATH.)

##First-time Installation

  1. Clone the repository.
  2. Run npm install and wait for all node dependencies to download.
  3. Run bower install which will download all front-end dependencies
  4. Run grunt compileAssets which will build the front-end packages
  5. Copy the /config/adapters.example.js to /config/adapters.js and add the correct credentials to the file.
  6. To start the server, type forever start app.js, which will spawn a daemon monitor. To launch the server directly, just use npm start, but do not use this in production.

##Deployment

  1. Stop the server with forever stop app.js in the project's root
  2. Pull the upstream changes in with git pull. The repository can occasionally be plauged with line-ending problems which can be solved by resetting to origin/master with git reset --hard origin/master. No config files/re-installation needed.
  3. Update node dependencies with npm update
  4. Update bower dependencies with bower update
  5. Compile the front end assets with grunt compileAssets
  6. Relaunch the site first with npm start and verify there are no errors, then quit (Ctrl + C), then launch forever start app.js. You can ignore testing with npm start if you find the log file that Forever automatically creates. Use forever list to find the file if need be.

cas_web's People

Contributors

bgrawi avatar tofferrosen avatar xsultan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cas_web's Issues

[website broken] Can no longer input new repositories - input validation issue

When trying to insert new repository, I receive the following error message:

Could not create repo: <pre>{ "ValidationError": { "url": [ { "data": "https://github.com/CommitAnalyzingService/CAS_CodeRepoAnalyzer.git", "message": "Validation error: \"https://github.com/CommitAnalyzingService/CAS_CodeRepoAnalyzer.git\" is not of type \"url\"", "rule": "url" } ] } }</pre>

I have made no updates to the server.

Add user ACL system

Use a json field for access level controls. Send ACL to client and verify controllers sever-side follow ACL with correct policies.

Add a user system

Add a user system, but don't tie users directly to repos, only allow them to "follow" repos and/or write feedback.

Enhance Overview Screen

Enhance the overview screen by adding more statistics and a better layout. Move all commits to the commits "tab"

Dependency issue

Do you remember Sultan when you tried set it up on my machine in the lab we had an issue with the dependencies in the package.json. Well I was configuring a new environment on my personal machine and I stumbled on the same problem.

npm install really does not like the minus signs:

-    "grunt": "-0.4.3",
-    "sails-disk": "-0.9.0",
-    "ejs": "-0.8.x",
+    "grunt": "0.4.3",
+    "sails-disk": "0.9.0",
+    "ejs": "0.8.x",
     "optimist": "^0.3.7",
     "moment": "^2.4.0",
-    "sails-postgresql": "-0.9.x",
-    "node-uuid": "-1.4.0",
+    "sails-postgresql": "0.9.x",
+    "node-uuid": "1.4.0",
     "grunt-contrib-less": "^0.9.0",
-    "sha1": "-1.1.0"
+    "sha1": "1.1.0"

Unable to download results as .csv file for newly added projects?

Can we download the results as a .csv file for newly listed projects? I created an account in the tool, signed in and entered a URL of a git repository. It run successfully and displayed the values of metrics. However, I still can't download data as a csv file. I noticed that we can download already existing available data as .csv, but not the one I have added even though they are listed as public.

Switch to bower for web dependencies

Instead of manually having bootstrap and other dependencies, use bower to manage them. Also, the grunt config would need to be changed in respect to this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.