Name | NEU ID | Email Address |
---|---|---|
Harshitha Somasundar | 001497986 | somasundar.h@husky.neu.edu |
Shuravi Barman | 001475070 | barman.s@husky.neu.edu |
Bhashmi Dineshbhai Fatnani | 001449268 | fatnani.b@husky.neu.edu |
Server Side: Spring boot(JAVA) services Entities(user) Entities(Recipe) Entities(Nutrition information) hibernate MYSQL(databse)
1.Run .mvn clean install to build the war.
- Run the Terraform policies, to create policies for IAM circleCI user ,using terraform apply (provide aws region and bucket name)
- Run the code deploy to create a custom AMI using CIRCLECI (configure environment variables like AWS keys, bucketname and region) 3.Run the Terraform to create all the resources required for the instance ( creates EC2, RDS, dynamodb , S3 bucket) 4.Run this webapp codedeploy using CIRCLECI.
- Take the IP created from instance and hot all the POST,GET, DELETE API's
- Tests are on Springrunner junit5 class
- used @Sprinboottest annotations to denote test class
- Mocked services to use method like findbyId and findbyUsername
- Unit test cases for all api's along with integration testing
- CircleCI is used th deploy the webapp code
- Use the api : " curl -u <PERSONAL_OR_PROJECT_TOKEN>
-d build_parameters[CIRCLE_JOB]=build
https://circleci.com/api/v1.1/project/github/tejasparikh/csye6225-spring2019-ami/tree/master" to trigger the CircleCI job without git commit - the job consists of environment variables like AWS acesskeys, bucket name and region , also the RDS instance which the the database for webapp
Steps to Replicate the jmeter script
- Install binaries for APACHE JMETER from https://jmeter.apache.org/download_jmeter.cgi
- Go to bin folder after unzip and open terminal and run ./jmeter command
- Start by naming your plan.
- Add thread group to your plan and set thread group to 500 and ramp up seconds to 100
- To thread group add HTTP request set domain name, protocol and path of your endpoint which in our case is post recipie
- The post recipe needs authorization and headers so to your request add HTTP authorization manager and HTTP request headers where you can mention the username and password for the user you want to create the recipies.
- To monitor your result add a listener result tree to your request.
- Save the plan with .jmx extension
- Now the run the test plan.