Giter Site home page Giter Site logo

webapptest's Introduction

Assignment Sonali Bandi Network Structures and Cloud computing

Goal

The main goal of this assignment is to build a APIs for an User to register and retreive his details using Node.js

Added Product Table and created Endpoints for that

Features

  • As a developer, I am able to create new account by providing the following fields as an input sassdas

    • Email Address
    • Password
    • First Name
    • Last Name
  • As a developer, I am able to get a particular user after the user has entered his credentials by implementing basic auth

  • As a developer, I am able to edit a particular user after the user has entered his credentials by

Requirements

  • Node.js
    • express.js
  • Sequelize
  • Base-64
  • Bcrypt js
  • Jest
  • Supertest
  • Postman- Recommended for Testing
  • Morgan

Implementation

APIs

Available APIs in the project: This is built using REST API and appropriate conventions Unauthenticated Endpoints

Create a User

This endpoint allows creating a new user account. It's a POST request that should be sent to /v1/user.

Health Check

This endpoint is used to check the health of the server. It's a GET request that should be sent to /healthz.

Get Product

This endpoint allows retrieving information about a product. It's a GET request that should be sent to /v1/product/:id, where :id is the product ID.

Authenticated Endpoints

Update User
This endpoint allows updating information for an existing user account. It's a PUT request that should be sent to /v1/user/:id, where :id is the user ID.

Create a Product

This endpoint allows creating a new product. It's a POST request that should be sent to /v1/product.

Update a Product

This endpoint allows updating information for an existing product. It can be done using either a PATCH or PUT request, sent to /v1/product/:id, where :id is the product ID.

Delete Product

This endpoint allows deleting an existing product. It's a DELETE request that should be sent to /v1/product/:id, where :id is the product ID.

How to use

Run: Node listener.js
Test:  npm run test 

Non Authenticated Endpoints:

 

* Create a user *:

 POST /v1/user


* Health Check *:

 GET /healthz

* Get Product *:

 /v1/product/:id
 

Authenticated Endpoints

    
  * Update User *
    
      PUT   /v1/user/:id

  * Create a Product *:
   
      POST /v1/product

  * Update a Product*:
   
      PATCH /v1/product/:id
      PUT   /v1/product/:id
  
  * Delete Product *:

      DELETE /v1/product/:id
    

Added workflow changes

  • Creates an AMI when merging the PR into the main repo with shell scrip as the provisioners.

Added Image Create Read and Delete operations:

 * image_id	
 * product_id	
 * file_name	
 * date_created	
 * s3_bucket_path	

new

webapptest's People

Contributors

sonalibandi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.