Giter Club home page Giter Club logo

go-jwt-react-2's Introduction

RGB2

GOLANG JWT AUTH API WITH REACT

  • Using GIN has server and main tool
  • Making a basic auth process from the JSON requests
  • Creating cookies http/only for security
  • Keeping the data on a postgres online database
  • Learning and listening to some music while at it
  • And at last but not least having some fun :}

SERVER

  • GIN: deal with requests and responses, set cookies and the JWT token

ROUTES

  • POST /v1/register --> github.com/zennon-sml/GJR2/controllers.Register (3 handlers)
  • POST /v1/login --> github.com/zennon-sml/GJR2/controllers.Login (3 handlers)
  • POST /v1/logout --> github.com/zennon-sml/GJR2/controllers.Logout (3 handlers)
  • GET /v1/userauth --> github.com/zennon-sml/GJR2/controllers.UserAuth (3 handlers)

DATABASE

  • POSTGRES: database hosted on ElephantSQL and also seted up a local postgres container

ORM

  • GORM: object relational maping for the database

ENVIROMENT

  • godotenv: way to get enviroment variables from .env

JWT

  • JWT: go package to make a json web token

PASSWORD SAFETY

  • BCRYPT: password encrypiting and decripter

POSTMAN

  • POSTMAN: use for testing the back end with requests

go-jwt-react-2's People

Contributors

zennon-sml avatar

Watchers

 avatar

go-jwt-react-2's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.