GithubHelp home page GithubHelp logo

parse-lite's People

Contributors

agrcrobles avatar andrewimm avatar davidrichard23 avatar madsb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

parse-lite's Issues

How to access user object in Cloud Code

I need access to the user object that calls the cloud function but request.user is always undefined. I'm calling the cloud function using:

Cloud(app, 'cloudFunctionName', {sessionToken: sessionToken})

Looking at the source, it looks like Cloud() doesn't have an AuthOptions parameter. How can I access the user object?

Is Social Login Possible?

Hi,

I'm evaluating the library for usage in a React Native app and one of my hard requirements is logging in only via social networks (Facebook, Google & Twitter for now), I've been reading the source for this and I see that both signUp & Login require username & password, which is something that I don't really have in that case.

Is there any way to do social login?

403 - unauthorised error

Hi Andrew,

const app = new App({
    host: 'http://123.123.12.1:1337/bb', // replaced ip address
    applicationId: 'app12345',
    masterKey: 'master12345'
});

This is my code to initialize App. And i am trying to Query inside componentDidMount:

componentDidMount() {
        console.log('app: ', app);
        Query.find(app, 'Message', Query.emptyQuery()).then((items) => {
            console.log('items: ', items);
        }, (err) => {
            console.log('err: ', err);
        });    
    }

But it falls down to error handler and returns: 403 - unauthorized error.

I can query with these credentials over curl without any problem. But inside app, not working.

Do you have any idea?

Is this official?

Hey,

You guys said that you were working on a better SDK for react-native support here

and are working on a new low-level SDK that works well with Redux and React Native. When that codebase is ready for production apps, we will publish a new recommended starter kit for apps built on Parse & React.

Is this that project? Should i use this, or wait until it will be published from official accounts?

I have to start a project within 2 months, and i want to build it on parse + react-native

Thanks

No compatible version found: parse-lite@^1.0.0

Hi, great project! I like the idea of having some lite for parse.

I was playing with it a little bit and I am getting the following when installing react-native example libraries, will send a PR.

npm ERR! notarget No compatible version found: parse-lite@^1.0.0
npm ERR! notarget Valid install targets:
npm ERR! notarget 0.1.0

modify the way to build a resource string

Hi, Thanks for your libraries ;)
I am testing the parse-lite on the localhost and getting error "Unable to connect to the server".
It is Ionic2 application and I am trying to reach a Parse-server running on my dev machine

import {App, Query} from 'parse-lite';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
   app = new App({
    host: "http://localhost:1337/parse", // Required
    applicationId: "myAppId" // Required
  }); 

The log is saying that my URL is "http://http//classes/Rooms/HQUHuf1tDA" Failed to load resource: Aucun serveur ayant le nom d’hôte précisé n’a pu être trouvé.

When I have changed it to

  app = new App({
    host: "localhost:1337/parse", // Required
    applicationId: "myAppId" // Required
  }); 

got this one:
https://localhost:1337/parse/classes/Rooms/HQUHuf1tDA Failed to load resource: Une erreur SSL s’est produite et il est impossible d’établir une connexion sécurisée avec le serveur.

I hope it is clear what is going on here ;)
Val

crash in Query.find

Hello Andrew,

I am enjoying to play with the parse-lite ;)
As you have said is not quite ready for production but...
Let say I have a Player:

//   this.appServer = App()
    let player = { name: 'Andrew', score: 1000000 };
    Save(this.appServer, 'Player', player);

When I am trying to get it by objectId everything is Okay

Query.get(this.appServer, 'Player', 'DIUicWM3pM').then((result) => {

even without objectId

    Query.get(this.appServer, 'Player', '').then((result) => {
      // `result` is the object
      // Now you can do something with it!
      if (result.results === undefined) {
          console.log(JSON.stringify(result));
      } else {
        for (var item of result.results) {
          console.log(JSON.stringify(item));
        }
      }
    }, (err) => {
      console.log('An error occurred:', err);
    });

My point of interest is Query.find

    Query.find(this.appServer, 'Player', {limit: 10}).then((objects) => {
      // objects is an array of Item results
      for (var item of objects) {
        console.log(JSON.stringify(item));
      }
    }, (err) => {
      console.log('An error occurred:', err);
    });

But I got an error here:

view-controller.js:231HomePage ionViewDidLoad error: 
undefined is not an object (evaluating 'q.order.length')

Have a nice weekend!
Val

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.