/identity-service

Identity based actions for our services

Primary LanguageGoMIT LicenseMIT

identity-service

The part of the website which holds the identity of members

How can I contribute?

Wish to contribute? You can find a detailed guide here!

Project Structure

We are using AWS SAM(Serverless Application Model) with golang. The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It provides shorthand syntax to express functions, APIs, databases, and event source mappings. With just a few lines per resource, you can define the application you want and model it using YAML. Read more about SAM here.

Routes Created

/profile
/verify
/healthCheck

How to start ?

You should have some things pre-installed -

SAM-CLI GOLANG

To Run locally

Firestore setup before running the server locally

  • Create an application on FireStore and generate a service file.
  • Add the service file credentials in the sample-env.json file as a string.
  • Rename sample-env.json to env.json
  • Remove all the spaces such that the whole json that you copied is in a single line
  • Replace \n with \\n in your copied json
  • Replace " with \" in your copied json

Executing the script to run the server locally

  • Windows users need to download & install Git bash to execute the scirpt.
  • Mac/Linux users can run the script in your native terminal.
sh scripts/dev.sh

Possible Errors while running the above command

You can see service running on localhost:3000