GithubHelp home page GithubHelp logo

chenkie / sample-auth0-angular Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kmaida/sample-auth0-angular

1.0 3.0 1.0 146 KB

Angular application authenticated with Auth0.

License: MIT License

TypeScript 76.28% JavaScript 7.78% HTML 15.70% CSS 0.24%

sample-auth0-angular's Introduction

sample-auth0-angular

Implement Auth0 and secure an Angular application with an authenticated Node.js API.

Angular Tutorial

To begin, proceed to Auth0 Angular Workshop to follow along with the tutorial.

Using This Repo

If you want to clone and run this repo, you will need:

Requirements

Clone the Repo

Once you have all the above requirements fulfilled, clone this repo and install its dependencies:

git clone https://github.com/kmaida/sample-auth0-angular.git
cd sample-auth0-angular
npm install

Configure Environment

Locate the environment.ts.sample file and change its filename to environment.ts to activate the file. Then add the necessary Auth0 configuration to the environment variable as described here.

Serve the App

Serve the app by running:

ng serve

The app will be available at http://localhost:4200.

Important: Make sure you have the sample-auth0-nodeserver running to provide API data for the Angular app.

Deploying to Heroku

Make sure you have Heroku for Node installed on your machine. Create a new Heroku app in the root of this project.

heroku create

When all changes have been pushed to the main repository for the app, push to Heroku to start an automatic build.

git push heroku master

The app will be served using the small express server in server.js.

License

MIT © Kim Maida 2018

sample-auth0-angular's People

Contributors

angular-cli avatar chenkie avatar kmaida avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

kvkaushal1989

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.