A demo MEAN stack web app to demonstrate my web development skills.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backend scripts
e2e
src
.angular-cli.json
.editorconfig
.gitignore
README.md
karma.conf.js
package-lock.json
package.json
protractor.conf.js
tsconfig.json
tslint.json

README.md

MEANdemo

version 1.0

This project was generated with Angular CLI version 1.4.4. It is intended to be a demo for my MEAN stack development skills.

Features:

  • uploading and viewing content
  • counting number of posts without a for loop

Features to be implemented:

  • refresh total number of posts displayed after upload
  • validate upload form; do not allow empty entries
  • introduce authentication before upload (login and registration forms)

Before launch

Folder backend scripts contains two scripts to be executed with node.js before launching Angular project. initDB.js is required only once. It sets up the database and collection within MongoDB. After that, launch server.js. It must be always running. The script provides API to upload and view posts from the database.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files. Use ng serve --host 0.0.0.0 when running your dev server inside docker container.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Unit tests are to be developed. Run ng test to execute the unit tests via Karma.

Running end-to-end tests

End-to-end tests are to be developed. Run ng e2e to execute the end-to-end tests via Protractor.

Further help

Contact me: matthew@grabara.eu