Skip to content

pet project to handle Go basics for web development with TypeScript ui

Notifications You must be signed in to change notification settings

olesuv/e-commerce

Repository files navigation

e-commerce

Web app for buying goods used for intro to backend dev in Go.

Stack

  1. Vite + React
  2. GraphQL Server

Application workflow

Aplication workflow

Installation

chmod u+rx install.sh; ./install.sh

Run

cd client; npm run dev

go run server.go

Architecture

george@hotz:e-commerce$ tree -L 1 --dirsfirst
├── client
|   # all client code
├── configs
|   # main configs (for backend)
├── constants
|   # constants (for backend)
├── graph
|   # graphql API
├── handlers
|   # http handlers
├── middleware
├── models
|   # mongodb models
├── services
|   # mongodb services
├── tests
├── utils
|   # helpers
├── Dockerfile
├── go.mod
├── go.sum
├── gqlgen.yml
|   # yml file to generate gql schema
├── README.md
├── server.go
|   # server init
└── tasks.md
    # dev notes/tasks