nexters / myply Goto Github PK
View Code? Open in Web Editor NEWThis is a repository for myply server
License: MIT License
This is a repository for myply server
License: MIT License
google cloud sql
is not suitable for side-project because a pricing issue.
No matter how I reduced cloud sql spec, the minimum
cloud sql
price is$8.56
/ per month.
Therefore, I consider firestore
(nosql) which provides free specs up to a certain request.
cloud sql
on gcp.There is an gopls
error in server.go
related this issue
No packages found for open file /some/path/wire.go: .
If this file contains build tags, try adding "-tags=" to your gopls "buildFlag" configuration (see (https://github.com/golang/tools/blob/master/gopls/doc/settings.md#buildflags-string).
Otherwise, see the troubleshooting guidelines for help investigating (https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md)
//go:build wireinject
// +build wireinject
package application // bug occured here
so I added buildTags to gopls.
Introduce wire
as dependency injection tool
Add base http format to myply
BaseResponse{
code: int32)
message?: str // error message
data: {} // success data
}
user <--http connection--> myply server <--db conn--> mongo driver
Before that we need more test and docs
pricing
Just use Taiwan region
First generation
Set number of vCPU 1 (4로 설정하면 대략 하루 18,000원)
Seoul이 vCPU가격이 다른 region에 비해서 훨씬 높다. -> Select Taiwan
Data Egress(outboud) pricing
cloud run
region same as cloud sql
There are two phases
To load env variable I picked godotenv
The env variables used for production phase will be managed in the settings of gcp cloud run.
go get -u google.golang.org/api/youtube/v3
How to build repo pattern with hexa
How to seperate entity and gorm model
https://levelup.gitconnected.com/practical-ddd-in-golang-repository-d308c9d79ba7
Add swagger authorize feature.
GET /v1/memos
// response, order by updatedAt
{
code: ENUM(int),
message?: str,
data: {
memos: []MemoResponse
}
}
Previously I planned to parse keywords from query string by NLP process.
But youtube already parse keywords so I deprecate that process
GET /v1/musics?order={recent|count}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.