Skip to content

Setting up Development and Testing Environment

Bryce Plunkett edited this page Dec 18, 2018 · 3 revisions

Major Dependencies for Development

  • node.js >= 11.2.0
  • npm >= 5.6.0
  • angular ^5.0.0
  • forever ^0.15.3
  • express ^4.16.4

Running in Development Mode

NOTE: DO NOT USE THIS IN PRODUCTION

Must have node.js and npm with the versions stated above. Must also have angular-cli@1.7.4 and forever@0.15.3 installed globally (or compatible versions). NOTE: This means that you should be able to run 'ng' and 'forever' commands directly from console.

  1. Fork and clone the repository and cd into its root directory
  2. npm install
  3. npm run devBackend (starts backend allowing the frontend to read the filesystem)
  4. npm start (starts frontend)
  5. Access portfolio at localhost:4200

Because forever is used, any changes you make to the backend /backend.js will automatically be applied and the and backend will be automatically restarted. An analogous process also occurs with the frontend.

Any files added to src\assets\portfolio-documents will automatically be reflected in the portfolio's filesystem upon refresh of the browser viewing the site.

Running in Production

See the README.MD to learn how to build the project for production. You might also want to check out the guide for setting it up with Heroku for free.

Clone this wiki locally