sagoluyorum kod yaziyorum
caner-cetin / project-persephone Goto Github PK
View Code? Open in Web Editor NEWFood review backend.
Food review backend.
Need to run unit tests on every commit to the master.
Might split up as master/test and push from test to master if unit tests pass at test branch.
CD to be decided later, but %100 change it will be a deployment stage on EC2 server with Docker container.
Two possible candidates:
https://github.com/DATA-DOG/go-sqlmock
If we want container based approach, we can go
https://github.com/orlangure/gnomock
too, but tests may fail randomly, sqlmock is far more stable.
Change
`
{
"email":"[email protected]",
"username":"canercezarapyapardostlar",
"password":"123$sagopaHaksizdi",
"test":true,
"phoneNumber": "+905555555555",
"city": "BURSA",
"country": "TURKEY"
}`
to
var payload UserSignupRequest
payload.Email = "[email protected]"
payload.Username = "canercezarapyapardostlar"
payload.Password = "123$sagopaHaksizdi"
payload.Test = true
payload.PhoneNum = "+905555555555"
payload.City = "BURSA"
payload.Country = "TURKEY"
unit tests should also aim for showing future contributors to how things works around.
Almost all routers are dependent on the Server struct, so we need a testify suite that will initialize a Server in SetupTest function.
https://github.com/stretchr/testify#suite-package
This will also help us test middlewares.
Export it as PDF, https://stackoverflow.com/a/46977801, host the PDF in github pages or somewhere password protected.
Due to GitHub pages being always public, not being dependent to the repo.
Corresponding struct lies in helpers.go
type Restaurant struct {
Name string
Cuisine string
OpeningHours string
Phone string
Website string
Address string
Latitude float64
Longitude float64
}
/home will be simply the response of /login.
only accept token logins.
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.