An Image Filtering application, allows users to register and log into a web client, post photos to the feed, and process photos using an image filtering service. It has two components:
- Frontend - Angular web application built with Ionic framework
- Backend RESTful API - Node-Typescript application
http://udagram-prod-roopan.s3-website-us-east-1.amazonaws.com
username: [email protected] password: password
Provision the necessary AWS services needed for running the application:
- In AWS, provision a publicly available RDS database running Postgres.
- In AWS, provision a s3 bucket for hosting the uploaded files.
- Export the ENV variables needed or use a package like dotnev.
udagram-api
requires following env values.
POSTGRES_USERNAME=<username for the postgres db>
POSTGRES_PASSWORD=<password for the postgres db>
POSTGRES_DB=<postgres db name>
PORT=<port to host the backend application>
POSTGRES_HOST=<url of the hosted postgres>
AWS_ACCESS_KEY_ID=<AWS access key id>
AWS_SECRET_ACCESS_KEY=<AWS access key id>
AWS_BUCKET=<bucket name to host>
URL=<Url of the front end application>
JWT_SECRET=<secret for hashing the passwords>
- From the root of the repo, navigate udagram-api folder
cd udagram/udagram-api
to install the node_modulesnpm install
. After installation is done start the api in dev mode withnpm run dev
. - Without closing the terminal in step 1, navigate to the udagram-frontend
cd udagram/udagram-frontend
to intall the node_modulesnpm install
. After installation is done start the api in dev mode withnpm run start
.
Follow these steps to run the unit test cases in front end.
cd udagram/udagram-frontend
npm run test
There are no Unit test on the back-end
Unit tests are using the Jasmine Framework.