Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Not finished writting documentation but had a successful deployment
## Create a Master Jenkins EC2 instance
## Create 2 other ec2 instances that will serves a s agents for the master EC2
## The agents will serve as a platform to build the application and the other to test the application
![Screenshot 2021-09-25 223459](https://user-images.githubusercontent.com/60336145/135954593-787a7683-4382-4c86-8296-03950455c37a.png)
![Screenshot 2021-09-25 223532](https://user-images.githubusercontent.com/60336145/135954594-efbd7396-e9ca-4ae0-8ade-0881f9f115b5.png)
![Screenshot 2021-09-25 223753](https://user-images.githubusercontent.com/60336145/135954595-189afb6a-9b9f-4609-a1d5-d45cce8bf906.png)
![Screenshot 2021-09-25 224003](https://user-images.githubusercontent.com/60336145/135954596-de25c9dd-7011-4bb7-abbe-f37e26c07d8a.png)
![Screenshot 2021-09-25 224952](https://user-images.githubusercontent.com/60336145/135954597-9398fb7f-98c6-4bdd-bd3d-37ede01b0bab.png)
![Screenshot 2021-09-26 003736](https://user-images.githubusercontent.com/60336145/135954600-66e2f11e-92a2-4766-b479-e1226c3ed7ec.png)
![Screenshot 2021-09-26 010838](https://user-images.githubusercontent.com/60336145/135954602-bea670fd-9351-420d-8a15-e3157da6f63e.png)
![Screenshot 2021-09-26 010904](https://user-images.githubusercontent.com/60336145/135954604-d1bb8a53-d50a-4f9d-90ca-1ac938530c94.png)
![Screenshot 2021-09-26 011310](https://user-images.githubusercontent.com/60336145/135954606-cd5083fe-4f6b-43e3-9fa3-9dac911e2583.png)
## I ran into some trouble when the testing agent has an outdated dependency
![Screenshot 2021-09-25 223423](https://user-images.githubusercontent.com/60336145/135954610-12b4d2d7-b9b2-42d1-991b-73556859326e.png)
6 changes: 5 additions & 1 deletion kura_test_repo/Jenkinsfile → Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
pipeline {
agent any
agent {
label 'amazon-linux'
}
stages {
stage ('Build') {
steps {
sh 'rm -rf ./kura_test_repo/cypress2'
sh '''
npm install
npm install -g serve
serve -s build &
'''
}
}
Expand Down
84 changes: 68 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,68 @@
# DEPLOY6_FE
<h1 align=center>Deployment 6</h1>

Welcome to deployment 6, for this deployment you will need to follow the directions in the deployment6.pdf.

- Be sure to include the following below in your pull request:

***Requirements:***
- [x]Document issues and anything you decided to do different..
- [x]Generate a failed and passed test.
- [x]Take a screenshots of your failed and passed test.
- [x]Locate and upload cypress's screenshot and video of the headless browser test.

👉Link to deployment instructions: [here](https://github.com/kura-labs-org/DEPLOY6_FE/blob/main/Deployment%236.pdf)

![image](https://i.morioh.com/210507/ac11056f.webp)
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
describe('Heading', () => {
it('has the right title', () => {
cy.visit('http://172.31.31.38:5000/example-1')
cy.visit('http://192.168.135.78:5000/example-1')

cy.get('h1')
.invoke('text')
.should("equal", "My Awesome Web Application")
});

cy.screenshot()
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
68 changes: 0 additions & 68 deletions kura_test_repo/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.