Table of Contents
This Project is built by Golang and AWS. The user can be registered by /register
and can be loged in by /login
.
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
In order to run this project, you need the following stuff.
The Golang can be installed by golang official website
The latest version of AWS can be installed or updated by Install/ Update AWS CLI
- Create the Admin user.
- Get the
access_key_id
andsecret_access_key
.
- Configure the short or long term credentials. Details can be checked by Configuration and credential file settings
- confirm the identiy by
aws s3 ls aws sts get-caller-identity
Install the AWS CDK by:
npm install -g aws-cdk
For detailed info, it can be found by: AWS CDK Installation.
-
Clone/Downlaod this repository.
-
Go to the base folder.
-
Install all the needed dependencies by:
go get
-
Go to
lambda
folder, build executable files and zip the lambda to binary functioncd lambda GOOS=linux GOARCH=amd64 go build -o bootstrap zip function.zip bootstrap
-
Or this step can be done by running
Makefile
in lambda foldercd lambda make build
-
Before deployment, the change can be checked by
cdk diff
-
Deploy the project to AWS by
cdk deploy
- CDK Setup and Init
- Creating Serverless Function
- Building and Deploying Lambda
- Creating App Structs
- Setup DynamoDB
- API Handler Setup
- Using Interface to decouple the DB
- Hashing Password
- API Gateway Setup
- Creating JWT
- Middleware Setup
Tong Yao - @Tong Yao
Project Link: https://github.com/ChillYao/go-aws-user-login-registration-project