Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 1.86 KB

README.md

File metadata and controls

38 lines (21 loc) · 1.86 KB

Cover Your Apps

A teaching platform aimed at non-technically savvy people that teaches computer security best practices.

Installation Instructions

I've set up this application with the open source seed application accessible at https://github.com/angular/angular-seed. The benefits of using this seed application is that it sets up our web server and all of our folders for us and comes with a built in testing framework.

Step 1

Run npm install. The way the angular seed app is configured this command will run both npm install and bower install.

Step 2

Check to make sure the node_modules/ folder was created at the root of your directory.

Step 3

Look for the bower_components/ folder under app/. If for some reason the bower_components/ ends up in the root of your directory, move it to app/bower_components.

Step 4

The web server should be ready to go! Run npm start to start the server. The app will be accessible at localhost:8000/index.html.

If you get stuck at any point, check out the angular seed repo README!

Setting up the database locally (for Mac)

  1. (If you already have PostgreSQL installed or want to install it some other way, go ahead, but this an easy way.)

  2. Install Postgres.app either by clicking on that link and installing as usual, or if you have Homebrew do brew update && brew cask install postgres. 🎉

  3. Open Postgres.app to start your Postgres server.

  4. Go to the project directory in your command line and run . database/db-setup.sh Hopefully that works and gives you a little table of our names.

  5. npm install to make sure you have all the up to date db modules.

  6. Run the webserver (npm start etc.).

  7. Try out http://localhost:8000/api/dbtest/. You should get some JSON.