- ๐ญ Currently building the awesome mobile app distribution platform
- ๐ Some fun facts
The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQL database and JWT authentication middleware stored in Redis
License: MIT License
It looks like the repo https://github.com/myesui/uuid
is now missing and https://github.com/twinj/uuid
looks to be dependent on it. Thus, some fun errors occur with the modules and when trying to build.
remote: Repository not found.
fatal: repository 'https://github.com/myesui/uuid/' not found
An easy solution seems to be replacing https://github.com/twinj/uuid
with https://github.com/google/uuid
which has the same functionality.
You have deleted user token from redis store but the token is still valid(authorized=true), it is not invalidated. In middleware you are only checking if the token is authorized or not.
So, I installed the database and everything, and it's connected, but there doesn't seem to be any UI...is that an exercise left to the reader?
gin-boilerplate/tests/article_test.go
Lines 377 to 398 in 19bc753
Probably a very basic and stupid question - but what is the main purpose of having forms and models? Why not to use just models?
I'm wondering if I save JWT as httpOnly cookie in browser,will it be secure enough? Or do I need to implement an extra anti-CSRF token to each form?
A sample user user authentication/authorization code will be much appreciated.
Hi @Massad , just take a look a good Gin boilerplate for my project and found this interesting!
But, got 404 when hit the http://localhost:9000/?
Any help! Thank you.
I wanna use your great boilerplate, but because I'm a newbie Golang developer I have a request, can you please add Tags relationship for the articles. I wanna see how can I implement such things for my demo Restful APIs.
As some of the current dependencies are outdated or no longer maintained, gin-boilerplate could benefit from some changes to existing setup. What do you think of making these changes to gin-boilerplate?
It would be nice to add go-swagger for documentation, do it like this way.
https://medium.com/@pedram.esmaeeli/generate-swagger-specification-from-go-source-code-648615f7b9d9
so it won't be a lot of comment in the code and have a separate docs package from the code.
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.