This project was generated with Angular CLI version 1.4.4. It is intended to be a demo for my MEAN stack development skills.
- 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)
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.
ng serve for a dev server. Navigate to
http://localhost:4200/. The app will automatically reload if you change any of the source files.
ng serve --host 0.0.0.0 when running your dev server inside docker container.
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.
ng test to execute the unit tests via Karma.
Running end-to-end tests
End-to-end tests are to be developed.
ng e2e to execute the end-to-end tests via Protractor.
Contact me: email@example.com