

- #SIMILAR EXPRESS TALK HOW TO#
- #SIMILAR EXPRESS TALK INSTALL#
- #SIMILAR EXPRESS TALK UPDATE#
- #SIMILAR EXPRESS TALK CODE#
- #SIMILAR EXPRESS TALK FREE#
If not, feel free to reach out in the comments and we can help you debug! Creating the API You should see Hi ! Server is listening on port 8000. You can check that it's working by going to in your browser. In a new tab in your terminal, navigate to the server folder and enter in the following: npm start This saves a lot of development time since you won't have to refresh the page manually. When you run the app, Nodemon will watch for any changes and automatically restart the server when a change is detected. json in the root of the client folder and paste in the following: // client/auth_config.json //. Now the last thing you need to do before running the existing application is configure it to use your Auth0 variables from this dashboard.Ĭreate a new file called auth_config.
#SIMILAR EXPRESS TALK UPDATE#
These must match the development URL exactly! If you move your application into production in the future, you'll have to update these values to match the production URL. Allowed Web Origins - http : / /localhost : 8080.Allowed Logout URLs - http : / /localhost : 8080.Allowed Callback URLs - http : / /localhost : 8080.This is where you'll fill out some important information that allows the Auth0 application to connect to your Vue application. Then select "Single Page Web Applications" and click "Create". For the name, you can enter "Vue Events" or anything you'd like. Once you have your free account, head to the Auth0 dashboard to set up the Auth0 application for the Vue app.Ĭlick on the red button in the top right corner that says "Create Application".


Try out the most powerful authentication platform for free. Most of this is already configured for you in the existing repo, but you'll need to sign up for a free Auth0 account to update some of the configuration values. Auth0 provides a simple way to integrate authentication and authorization into any application. The previous tutorial used Auth0 to add authentication to the Vue.js app. This will create a node_modules folder and all of the app's dependencies will be installed into it.
#SIMILAR EXPRESS TALK INSTALL#
In your terminal, switch into the client folder and run: npm install Configuring Auth0 Now that everything is split up nicely, it's time to pull the dependencies into the client app. Here's what the folder structure looks like: ├───vue -express -events -auth Then make a new folder inside vue -express -events -auth and call it server. Since the client side of this application is already built, you're just going to clone the Vue application repo and call it client.
#SIMILAR EXPRESS TALK CODE#
Keeping the client code (Vue app) and server code (Express app) in the same parent folder makes it easier to switch back and forth while still keeping them separated.įirst, make a new folder called vue -express -events -auth that will serve as the parent folder for client and server. You're going to make a separate folder for the server code that you'll be working on.
#SIMILAR EXPRESS TALK HOW TO#
"Learn how to modify a Vue application to pull data from a secure API." In this tutorial, you're going to modify that app so that it pulls from an API. In the application's current state, the user would be kicked to the login page if they tried to view individual event details, but they could still manually search through the JavaScript to see the page content.

Because the data was saved in the JavaScript since we didn't have an API, there was no way to properly secure it. The caveat here was that instead of getting the data from one central API, it was just stored in the component itself with Vue's data function.
