This project is written in GO Link to the frontend repo
Name | Description |
---|---|
gin | a HTTP web framework |
go-redis | a type-safe Redis client |
gqlgen | a library for building GraphQL servers |
golang-jwt | an implementation of JSON Web Tokens |
google-uuid | a uuid generator |
prisma-client-go | an auto-generated and fully type-safe database client |
viper | a complete configuration solution |
- Clone the project to your machine
git clone https://github.com/Nuttawut503/capstone-backend && cd capstone-backend
- Copy
.env.example
file then rename the copied to.env
- Install postgresql and redis via docker (Skip if you already have)
chmod +x docker_setup.sh && ./docker_setup.sh
- Edit
.env
file to match your machine environment (Skip if you didn't run the above command) - Install required dependencies in the project
go install
- Migrate your database
go run github.com/prisma/prisma-client-go migrate dev
- Start the project
go run .