andrewimm / parse-lite Goto Github PK
View Code? Open in Web Editor NEWThe universal JS library for Parse Server
License: BSD 3-Clause "New" or "Revised" License
The universal JS library for Parse Server
License: BSD 3-Clause "New" or "Revised" License
I might be blind but I couldn't find anything referencing ACLs. Is it possible to set an object's ACL?
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?
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?
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?
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
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
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
How does one set about uploading a file using this library, specifically using React-Native?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.