Table of Contents
This lost and found web app is for reporting lost items. You can upload an image of a found item and edit the item after it’s posted. In this app, you can view posts (lost items), submit and edit posts, and deactivate posts once items are claimed.
This project was generated with Angular CLI version 14.0.3.
Images are stored in the cloud using Cloudinary. It provides an URL for each image so we only store the URLs in the database instead of image themselves. This significantly reduces the amount of data stored.
We used MongoDB. One of the biggest reasons is MongoDB is easy to host with Heroku as well as connect to Cloudinary.
Passing Dataform and Databody with Angular to the server was one of the primary challenges. We discovered that we can append values with dataform so that we can pass dataform and databody together!
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.