Skip to content

fernandedios/node-learning-marketplace

Repository files navigation

node-learning-marketplace

NodeJs Express, Wistia, Stripe, Mailchimp, Facebook Authentication

A e-learning marketplace built with NodeJs Express

Getting Started

Checkout this repo, install dependencies, configure, then start the app.

$ git clone git@github.com:fernandedios/node-learning-marketplace.git
$ cd node-learning-marketplace
$ npm install

-- configure app

$ npm start

Configuration

This web application requires the following as starting point:

Local Development Variables

module.exports = {
  database: 'mongodb://your_mongodb_url',
  port: process.env.PORT || 3000,
  secretKey: 'you_session_key',
  mailchimpKey: 'your_mailchimp_api_key',
  stripeSecretKey: 'your_stripe_secret_key',
  facebook: {
    clientID: 'your_facebook_client_id',
    clientSecret: 'your_facebook_secret_key',
    profileFields: ['emails', 'displayName'],
    callbackURL: 'http://localhost:3000/auth/facebook/callback',
    passReqToCallback: true // enable passing of req object to callbacks
  }
};

Save as 'dev.js' and place it inside the config folder.

Production Environment Variables

You will need to add the following environment variables to your production host

MONGO_URL,
SECRET_KEY,
MAILCHIMP_KEY,
STRIPE_SECRETKEY,
FB_CLIENTID,
FB_CLIENTSECRET,
CALLBACK_URL,

Preview

Access the application preview.

Thanks

node-learning-marketplace* © 2018, Fernan de Dios. Released under the MIT License.

fernandedios.com  ·  GitHub @fernandedios  ·  Twitter @fernan_de_dios