Coder Social home page Coder Social logo

ids721-project2's Introduction

rust-new-project-template

A good starting point for a new Rust project

References

Introduction

In project 2, the purpose is to build a functional Web Microservice in Rust and deliver it on Cloud based Container Registery (ECR). I create a simple actix Microservice for checking stock current price, high price, low price and open price that you are interested in.

This actix Microservice has multiple routes:

A. type: "/" that returns a message :

you can get close price of stock you are interested in

you can get high prices of stock you are interested in

you can get low prices of stock you are interested in

you can get open prices of stock you are interested in

image

B. type: "/openprice/{name}" that returns a open pirce for the stock you type /openprice/TSLA

image

C. type: "/lowprice/{name}" that returns a low pirce for the stock you type /lowprice/TSLA

image

D. type: "/highprice/{name}" that returns a high pirce for the stock you type /highprice/TSLA

image

E. type: "/currprice/{name}" that returns a current pirce for the stock you type /currprice/TSLA

image

Use Cloud based Container Registery (ECR) to deploy the project

  1. Go to AWS Cloud9, then click "Create environment"
  2. install rust in Cloud9 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  3. git clone from your repository git clone https://github.com/ht175/IDS721-Project2.git
  4. create a docker file touch Dockerfile

image

  1. Go to AWS Amazon Elastic Container Registry, create a private repository and click view push command follow the command when try to build docker, if it failed beacuase of no space left run this command curl -s https://gist.githubusercontent.com/wongcyrus/a4e726b961260395efa7811cab0b4516/raw/6a045f51acb2338bb2149024a28621db2abfcaab/resize.sh | bash /dev/stdin 60 6.Go to AWS APP Runner Click "create service" to set up configuration (choose the repository you created)

When finish, you can get

image

ids721-project2's People

Contributors

ht175 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.