To start developing, you must have Python 3.8 preinstalled. We recommend using a version manager, like pip.
-
Install Python 3.8 and Serverless Framework (https://www.serverless.com/framework/docs/providers/aws/guide/installation/)
-
Clone this project
git clone https://github.com/AWS-EDU/aws-edu-enem-api.git
-
Enter the directory and start VSCode (or your desired IDE) with
cd aws-edu-enem-api; code .
-
Enter the service directory
cd dashboard_service
-
Create a virtual environmnet with
virtualenv venv
. -
Install the dependencies with
pip install -r requirements.txt
.
cd services/<SERVICE NAME>
docker build -t <SERVICE NAME>:latest .
docker run -e AWS_ACCESS_KEY_ID=<ACCESS KEY> -e AWS_SECRET_ACCESS_KEY=<SECRET KEY> -e AWS_DEFAULT_REGION=<REGION> -p 9000:8080 <SERVICE NAME>:latest <FUNCTION>.lambda_handler
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
sls package
sls deploy
See CONTRIBUTING for more information.
This project is licensed under the MIT-0 License. See the LICENSE file.