Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# skill-map


## Part 1 - Initial setup and server setup
* [YouTube Tutorial Link](https://youtu.be/pHtohACmyj8?si=JwZHSdzFwHd8uAMB)
* [Source Code Link](https://github.com/Buildfromzero/skill-map/tree/v0.0.1)


- [YouTube Tutorial Link](https://youtu.be/pHtohACmyj8?si=JwZHSdzFwHd8uAMB)
- [Source Code Link](https://github.com/Buildfromzero/skill-map/tree/v0.0.1)

## Part 2 - User creation and project structure

* [YouTube Tutorial Link](https://www.youtube.com/watch?v=Bu3FZobGnHY)
* [Source Code Link](https://github.com/Buildfromzero/skill-map/tree/v0.0.2)
- [YouTube Tutorial Link](https://www.youtube.com/watch?v=Bu3FZobGnHY)
- [Source Code Link](https://github.com/Buildfromzero/skill-map/tree/v0.0.2)

## Part 3 - User CRUD operations and refctoring

* [YouTube Tutorial Link](https://www.youtube.com/watch?v=rvFzZmuiR6A)
* [Source Code link](https://github.com/Buildfromzero/skill-map/tree/v0.0.3)

- [YouTube Tutorial Link](https://www.youtube.com/watch?v=rvFzZmuiR6A)
- [Source Code link](https://github.com/Buildfromzero/skill-map/tree/v0.0.3)

## Part 4 - Frontend Integration and CORS fix

- [YouTube Tutorial Link](https://youtu.be/nMyF2Rh1mnI?si=XCqgkgzwESBs77ek)
- [Source Code link](https://github.com/Buildfromzero/skill-map/tree/v0.0.4)
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ require (
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-contrib/static v1.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.17.0 // indirect
github.com/go-playground/validator/v10 v10.18.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ github.com/gin-contrib/cors v1.5.0 h1:DgGKV7DDoOn36DFkNtbHrjoRiT5ExCe+PC9/xp7aKv
github.com/gin-contrib/cors v1.5.0/go.mod h1:TvU7MAZ3EwrPLI2ztzTt3tqgvBCq+wn8WpZmfADjupI=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
github.com/gin-contrib/static v1.1.0 h1:MMVoe+sAwMbt1rqH91C48LAmmBn9tuVJInaT5b/64OI=
github.com/gin-contrib/static v1.1.0/go.mod h1:41ymO4uaFIGCy1kco0PBunNbvXeesKsyPR9TnVKR1BQ=
github.com/gin-gonic/contrib v0.0.0-20221130124618-7e01895a63f2 h1:dyuNlYlG1faymw39NdJddnzJICy6587tiGSVioWhYoE=
github.com/gin-gonic/contrib v0.0.0-20221130124618-7e01895a63f2/go.mod h1:iqneQ2Df3omzIVTkIfn7c1acsVnMGiSLn4XF5Blh3Yg=
github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg=
Expand All @@ -31,6 +33,8 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
github.com/go-playground/validator/v10 v10.17.0 h1:SmVVlfAOtlZncTxRuinDPomC2DkXJ4E5T9gDA0AIH74=
github.com/go-playground/validator/v10 v10.17.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU=
github.com/go-playground/validator/v10 v10.18.0 h1:BvolUXjp4zuvkZ5YN5t7ebzbhlUtPsPm2S9NAZ5nl9U=
github.com/go-playground/validator/v10 v10.18.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
Expand Down
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/buildfromzero/skill-map/managers"
"github.com/buildfromzero/skill-map/storage"
"github.com/gin-contrib/cors"
"github.com/gin-contrib/static"
"github.com/gin-gonic/gin"
)

Expand All @@ -21,6 +22,10 @@ func main() {

router.Use(cors.Default())

router.Use(static.Serve("/", static.LocalFile("frontend/build", false)))
router.Use(static.Serve("/users", static.LocalFile("frontend/build", false)))
router.Use(static.Serve("/skills", static.LocalFile("frontend/build", false)))

userManger := managers.NewUserManager()
userHandler := handlers.NewUserHandlerFrom(userManger)
userHandler.RegisterUserApis(router)
Expand Down