This Open Source Project will be a template in Aurelia for Shared Economy Projects. The Concept for the Site is that a chef can sign up to cook their best meal(s) and charge per head. A diner can search for chefs for a particular meal that they wish to eat. The site will include sign up through facebook, google, it will be responsive for mobile, and it will allow the user to collect payment through paypal or stripe (credit card)
This site uses aurelia, bootstrap, and auth0 (for SSO) on the front ed.
The directions below will get you setup tog
In the client directory, run the following:
You will need jspm
to install some of the dependencies.
npm install -g jspm
Clone the repo, then:
npm install
jspm install
In the server directory :
npm install
npm install loopback-connector-mongodb --save
Run the loopback server with
node server.js
The server will appear at localhost:3000
the apis can be explored with localhost:3000/explorer
To run the Aurelia client, go to client directory and type
gulp watch
## Set Your Auth0 Credentials
If you haven't already done so, [sign up](https://auth0.com/signup) for your free Auth0 account.
Set your credentials in `Auth0Lock`. (currently my credentials are there)
```js
// src/app.js
...
lock = new Auth0Lock(AUTH0_CLIENT_ID, AUTH0_DOMAIN);
...
Auth0 helps you to:
- Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others, or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
- Add authentication through more traditional username/password databases.
- Add support for linking different user accounts with the same user.
- Support for generating signed Json Web Tokens to call your APIs and flow the user identity securely.
- Analytics of how, when and where users are logging in.
- Pull data from other sources and add it to the user profile, through JavaScript rules.
- Go to Auth0 and click Sign Up.
- Use Google, GitHub or Microsoft Account to login.
This project is licensed under the MIT license. See the LICENSE file for more info.