This application is provided as starter project Github:UDAGRAM which is a part of the Udacity FullStack JavaScript nanodegree requirements. to employ and adapt the code to
- Configure the services and infrastructure on AWS
- Create scripts to deploy each component of the application
- Create and document an automated pipeline using CircleCI and make sure it working and hosted on AWS.
The project is available at live preview
REQ: Provide the link to your hosted working Front-End Application in the README ==>
http://udagram-frontend-udacity-g5.s3-website-us-east-1.amazonaws.com
See additional documentation in the documentation folder. :
- Dependencies dependencies.md
- Infrastructure Infrastructure.md
- Pipeline Pipeline.md
Include a screenshot of your last build in CircleCi :
Include screenshots of the configuration page of your AWS services:
PostgreSQL RDS database
Elastic Beanstalk Environment
FrontEnd S3 Bucket
Media S3 Bucket
Architecture
Local Machine Instructions
- ✔️ Clone this repo locally into the location of your choice.
- ✔️ Move the content of the udagram folder at the root of the repository as this will become the main content of the project.
- ✔️ Open a terminal and navigate to the root of the repo
- ✔️ follow the instructions in the installation step
Ensure you have the following installed:
- Node v14.15.1 (LTS), or more recent. While older versions can work, it is advisable to keep Node to the latest LTS version
- npm 6.14.8 (LTS), or more recent. Yarn can work but was not tested for this project
- AWS CLI v2, v1 can work but was not tested for this project
- AWS EB CLI
Installation Local Machine Instructions to(DEV ENV)
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/.
-
✔️ From the root of the repo, navigate udagram-api folder
cd starter/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 starter/udagram-frontend
to intall the node_modulesnpm install
. After installation is done start the api in dev mode withnpm run start
.
This project contains two different test suite: unit tests and End-To-End tests(e2e). Follow these steps to run the tests.
cd starter/udagram-frontend
npm run test
npm run e2e
There are no Unit test on the back-end
Unit tests are using the Jasmine Framework.
The e2e tests are using Protractor and Jasmine.