Setting up your machine to work on the Mazaar backend
This guide will equip you with the essential tools and steps to get your development environment ready for working on our Flutter project backend hosted on GitHub, AWS, and FireBase. We'll cover installing GO, SAM, AWS CLI, and Docker.
Prerequisites:
- A stable internet connection 🌐
- A Windows computer running Windows 10 or later 🖥️
Installing Prerequisites
Installing GO
GO is a programming language developed and designed at Google for web applications, cloud and networking services, and other types of software.
- Go to the GO website and navigate to their All releases page to see the latest GO version
- Download the latest Windows Installer
- Perform a default installation
- Check the installation by running the following command in a Powershell terminal
go version # Should return something like "go version go1.23.1 windows/amd64"
- Install the latest protobuf package by running the following command in a Powershell terminal
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
Installing AWS CLI
The AWS Command Line Interface (CLI) allows the user to manage all the AWS services from one tool / command line.
- Go to the AWS CLI website
- Download the 64-bit Windows installer
- Perform a default installation
- Check the installation by running the following command in a Powershell terminal
aws --version # Should return something like "aws-cli/2.17.46 Python/3.11.9 Windows/10 exe/AMD64"
- Set up your AWS Credentials by running the following command in a Powershell terminal
aws configure
This command will ask for the following information:
- AWS Access Key ID
- AWS Secret Access Key
- Default region name
- Default output format
Here is what you will input for each of those fields:
- AWS Access Key ID: You will need to get this from one of the founders
- AWS Secret Access Key You will need to get this from one of the founders
- Default region name: us-east-1
- Default output format: json
Installing AWS SAM CLI
The AWS Serverless Application Model (SAM) provides a series of templates for defining infrastructure as Code (IaC) for serverless applications. These can deploy directly to AWS CloudFormation. The AWS SAM Command Line Interface (CLI) allows the user to better control the AWS SAM features.
- Go to the AWS SAM website and navigate to the CLI downloads page
- Follow the instructions on the site for the Windows download
- Check the installation by running the following command in a Powershell terminal
sam --version # Should return something like "SAM CLI, version 1.123.0"