Giter Club home page Giter Club logo

parsestore's Introduction

ParseStore

Quickstart

Seed sample products on Parse

  1. Create a new app on Parse named ParseStore
  2. Add the new Parse Application ID and REST API key to Install/install.sh (Very important that you use the REST API key here)
  3. Using Terminal, cd into the provided Install folder, and run "sh install.sh"
  4. Checkpoint: via the data browser, verify a class named "Item" is created on the Parse app. There should be 3 products in this class: T-shirt, hoodie, and mug. There should be an image associated with each product.

Get your iOS app up and running

  1. Add the Parse Application ID and Parse Client API key to /Store/Resources/Development.xcconfig and /Store/Resources/Distribution.xcconfig
  2. In XCode, choose Clean from the Product menu.
  3. Checkpoint: run your app in the simulator; you should see the products via your app. You cannot buy yet.

Get your Android app up and running

  1. Clone the repository and import the ParseStoreandroid project from the ParseStore-Android folder.
  2. Add your Parse application id and client key in Application.java.
  3. Checkpoint: run your app in the simulator; you should see the products via your app. You cannot buy yet.

Set up your Stripe account

  1. Create a Stripe account.
  2. (For iOS) Add Stripe test publishable key to /Store/Resources/Development.xcconfig and /Store/Resources/Distribution.xcconfig
  3. (For Android) Add Stripe test publishable key in CheckoutActivity.java.
  4. Add Stripe test secret key to /CloudTest/cloud/main.js
  5. Install command line tool
  6. Using Terminal, cd into the provided CloudTest folder, and run "parse add", then select the ParseStore app you set up
  7. run "parse deploy"
  8. In XCode, choose Clean from the Product menu.
  9. Checkpoint: verify via the data browser that the cloud code is properly deployed.
  10. Checkpoint: run your app in the simulator; test buying using the Stripe test credit card. It should work.

Set up your mail delivery system (optional)

  1. Create a MailGun account (for sending emails when purchases are made).
  2. Add Mailgun, myDomainName and myApiKey key to /CloudTest/cloud/main.js
  3. Deploy the updated code with "parse deploy"
  4. Checkpoint: run your app in the simulator; enter your real email address while making the purchase. It should send you an email.

You are done! Congratulations!

parsestore's People

Contributors

madhavc avatar jeffreyjackson avatar gfosco avatar lacker avatar hramos avatar stefek99 avatar richy486 avatar

Watchers

James Cloos avatar  avatar

Forkers

turlodales

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.