An apline.js project template with all the normal goodies:
- Webpack to build and serve the project
- Navigo to route pages
- Postcss so we can write nice scss.
- Auth0 to handle authentication
- shoelace for sweet styles
- create a new file called .env in your application root directory and copy paste the contents of the .env.sample file.
- login or register to your auth0 account.
- once in your auth0 portal, click the applications dropdown and select Applications.
- select create application.
- enter your application name and select regular web application.
- go into application settings.
- populate the Domain and Client ID of the .env file with the relevant fields in the auth0 application settings.
- In the auth0 application settings, scroll to the application URI's section. Add the allowed callback URL/'s that will be redirected to once authenticated and add the allowed web origins URL/'s that will be the root of the web application.
If you are testing this application locally, for example. The allowed callback URL would be http://localhost:8080/ and the allowed web origin URL would be http://localhost:8080.
- Populate a
.env
file in the root of the app (use.env.sample
for help) $ yarn install
$ yarn serve