A good starting point for a new Rust project
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
B. type: "/openprice/{name}" that returns a open pirce for the stock you type
/openprice/TSLA
C. type: "/lowprice/{name}" that returns a low pirce for the stock you type
/lowprice/TSLA
D. type: "/highprice/{name}" that returns a high pirce for the stock you type
/highprice/TSLA
E. type: "/currprice/{name}" that returns a current pirce for the stock you type
/currprice/TSLA
- Go to AWS Cloud9, then click "Create environment"
- install rust in Cloud9
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- git clone from your repository
git clone https://github.com/ht175/IDS721-Project2.git
- create a docker file
touch Dockerfile
- 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