Coder Social home page Coder Social logo

lfunk / fresh-tracks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/fresh-tracks

0.0 0.0 0.0 5.25 MB

A custom-built serverless application built in Vue.js to demonstrate multiple SaaS integrations into AWS with EventBridge.

Home Page: https://myfreshtracks.com

License: MIT No Attribution

Dockerfile 0.73% JavaScript 43.24% PowerShell 0.14% Shell 0.16% HTML 2.98% Vue 52.46% CSS 0.29%

fresh-tracks's Introduction

Fresh Tracks

A custom-built serverless application built in Vue.js to demonstrate multiple SaaS integrations into AWS with EventBridge.

Fresh Tracks

Learn about FreshTracks 3P SaaS integrations:

Deploying the front-end application

  • Clone the repo onto your local development machine:
git clone
  • cd into the root directoy and run:
npm install
  • Run the application locally:
npm run serve

Configuration

Authentication - Auth0 Integration

The project needs to be connected to an Auth0 application in order for the authentication flow to work.

  1. Go to Auth0 and click Sign Up.
  2. Register a single page applicaiton
  3. Add http://localhost:3000 to the Allowed Callback URLs, Allowed Logout URLs, and Allowed Web Origins in your applicaiton settings.
  4. You must configure the front end applicaiton with your Auth0 domain and client ID.

You can do this in 1 of 2 ways:

Option 1 (prefered) - use environment variables:

create a .env file in the root directory and provide the following values:

VUE_APP_Auth0_Domain = <YOUR AUTH0 DOMAIN>
VUE_APP_Auth0_ClientId = <YOUR AUTH0 CLIENT ID>
VUE_APP_Auth0_Audience = <API_IDENTIFIER>

Option 2 - use a json config file:

To do this alter the /src/auth/auth_config.json file with your Auth0 credentials:

{

  "domain": "<YOUR AUTH0 DOMAIN>",
  "clientId": "<YOUR AUTH0 CLIENT ID>",
  "audience": "<API_IDENTIFIER>"
}

Then in /src/main.js:

  1. uncomment import { domain,clientId,audience } from "./auth/auth_config.json";
  2. comment out:
var domain = process.env.VUE_APP_Auth0_Domain
var clientId = process.env.VUE_APP_Auth0_ClientId
var audience = process.env.VUE_APP_Auth0_Audience

HelpWidget - Zendesk Integration

FreshTracks uses Zendesk's Web Widget to provide a curated self service knowldge repository.

In order to configure this for your own Zendesk account you'll need to replace the Zendesk widget script located in public/index.html with your own Zendesk web widget script. to locate this:

In your Zendesk Dashboard:

  1. Click the Admin icon in the sidebar, then select Channels > Widget.
  2. Click the Setup tab, if it is not already selected.
  3. Under the code box, click Copy to clipboard.
  4. Paste this into public/index.html, replacing the existing script.

Some further customizations have been made in /src/components/NavBar.vue. These include the insertion of a custom form, delared by the form ID. You can use your own custom forms here:

Creating custom Zendesk Forms

Deploying the backend application

See this guide to deploy the back end resources and services

Fresh Tracks - Core architecture

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.

License

This project is licensed under the MIT license. See the LICENSE file for more info.

fresh-tracks's People

Contributors

dependabot[bot] avatar amazon-auto 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.