Coder Social home page Coder Social logo

cmvandrevala / authentication-golang-tutorial Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 477 KB

Working through the auth0 tutorial on authentication in golang.

Home Page: https://auth0.com/blog/authentication-in-golang/

License: MIT License

Go 71.93% HTML 28.07%
golang authentication jwt jwt-authentication

authentication-golang-tutorial's Introduction

Authentication Tutorial

I went through this tutorial to learn about JWTs and the Golang net/http package. The original tutorial can be found here.

Building and Running the Project

This project includes a Dockerfile which can be used to build and run the code. You need to have Docker and Golaing installed on your system for the setup to work. First, retrive the project using:

go get https://github.com/cmvandrevala/authentication-golang-tutorial.git

This will add the project under $GOPATH/src/github.com/cmvandrevala/authentication-golang-tutorial. Next, navigate to the project directory and run:

docker build -t="<name of image>" .

where <name of image> is the name that you want to give the Docker image for this app. To run the app, use the following command:

docker run -d -p 3000:3000 <name of image>

You can then navigate to localhost:3000 in your browser to view the landing page of this app.

In order to stop the Docker container, run docker ps to get a list of the current running containers. Find the container with an IMAGE of <name of image>, retrieve its Container ID, and then run:

docker stop <CONTAINER ID>

authentication-golang-tutorial's People

Contributors

cmvandrevala avatar

Watchers

 avatar  avatar

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.