In this project students will learn how to take a newly developed E-Commerce website built for a retailer and deploy it to a cloud service provider so that it is available to customers. They will use the aws console to start and configure the services the application needs such as a database to store product information and a web server allowing the site to be discovered by potential customers. They will modify their package.json scripts and replace hard coded secrets with environment variables in their code.
After the initial setup, students will learn to interact with the services they started on aws and will deploy manually the application a first time to it. As they get more familiar with the services and interact with them through a CLI, students will gradually understand all the moving parts.
Students will then register for a free account on CircleCi and connect their Github account to it. Based on the manual steps used to deploy the app, students will write a config.yml file that will make the process reproducible in CircleCi. They will set up the process to be executed automatically based when code is pushed on the main Github branch.
The project will also include writing documentation and runbooks covering the operations of the deployment process. Those runbooks will serve as a way to communicate with future developers and anybody involved in diagnosing outages of the E-Commerce application.
- Clone this repo locally into the location of your choice.
- Open a terminal and navigate to the root of the repo
- follow the instructions in the installation step
The project can run but is missing some information to connect to the database and storage service. These will be setup during the course of the project
- Node v14.15.1 (LTS) or more recent. While older versions can work it is advisable to keep node to 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
Step by step explanation of how to get a dev environment running.
List out the steps
- From the root of the repo, navigate udagram-api folder
cd starter/udagram-apito 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-frontendto 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-frontendnpm run testnpm 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.
todo