Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Verified Commit 4c2049e0 authored by Muhammad Ariq Basyar's avatar Muhammad Ariq Basyar
Browse files

improved README

added haskell stack installation on README.md
parent 8cf2e4b3
No related branches found
No related tags found
No related merge requests found
......@@ -44,25 +44,27 @@ algorithm, by theory, every match is either draw or the bot is the winner.
git clone https://gitlab.cs.ui.ac.id/pemfung-fun/tic-tac-toe.git
```
2. Install [aws-sam-cli](https://pypi.org/project/aws-sam-cli/)
2. Install [haskell stack](https://github.com/commercialhaskell/stack/tree/master/doc)
3. Install [aws-sam-cli](https://pypi.org/project/aws-sam-cli/)
```shell
pip install aws-sam-cli
```
3. Build the project
4. Build the project
```shell
make
```
4. Unzip `build/function.zip` and move to project's root folder
5. Unzip `build/function.zip` and move to project's root folder
```shell
unzip build/function.zip
```
5. Run this [FaaS](https://en.wikipedia.org/wiki/Function_as_a_service) locally
6. Run this [FaaS](https://en.wikipedia.org/wiki/Function_as_a_service) locally
```shell
sam local start-api --host 127.0.0.1 --port 3000
......@@ -71,7 +73,7 @@ algorithm, by theory, every match is either draw or the bot is the winner.
> see [the docs](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-start-api.html)
for more options.
6. Now you can try to POST something like this
7. Now you can try to POST something like this
```shell
curl -v\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment