-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: Upgrade to Parse Server 8 using ES6 syntax and Parse JS SDK in example web page #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4ecec31
feat: update example
dblythy 10991aa
Update .nycrc
dblythy dc96e9d
Update main.js
dblythy f259993
update parse
dblythy 3f22657
add unit tests
dblythy d1ce950
fix tests
dblythy 2cb184e
Update ci.yml
dblythy 4167898
add schema definitions
dblythy be641ad
simplify changes
dblythy 14f7ea5
Merge remote-tracking branch 'upstream/master' into update-example
dblythy 6863ee0
Update package-lock.json
dblythy 433de4a
remove docos
dblythy 966d6c3
remove jest
dblythy 34e66af
Merge branch 'master' into update-example
mtrezza 2cb05a0
Update public/test.html
dblythy 6f5a82f
merge conflicts
dblythy b414e92
Merge branch 'master' into update-example
mtrezza ac60dd9
upgrade to parse server 8
mtrezza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
// It is best practise to organize your cloud functions group into their own file. You can then import them in your main.js. | ||
await import('./functions.js'); | ||
await Promise.all([ | ||
import('./functions.js') | ||
]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const schemaDefinitions = [{ | ||
className: "TestObject", | ||
fields: { | ||
beforeSave: { type: "Boolean", defaultValue: false }, | ||
additionalData: { type: "String" }, | ||
}, | ||
classLevelPermissions: { | ||
find: { "*": true }, | ||
count: { "*": true }, | ||
get: { "*": true }, | ||
update: { "*": true }, | ||
create: { "*": true }, | ||
delete: { "*": true }, | ||
}, | ||
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { schemaDefinitions } from "./cloud/schema.js"; | ||
export const config = { | ||
databaseURI: process.env.DATABASE_URI || process.env.MONGODB_URI || 'mongodb://localhost:27017/dev', | ||
cloud: process.env.CLOUD_CODE_MAIN || './cloud/main.js', | ||
appId: process.env.APP_ID || 'myAppId', | ||
masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret! | ||
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed | ||
liveQuery: { | ||
classNames: ['Posts', 'Comments'], // List of classes to support for query subscriptions | ||
}, | ||
schema: { | ||
definitions: schemaDefinitions, | ||
lockSchemas: true, | ||
strict: true, | ||
recreateModifiedFields: false, | ||
deleteExtraFields: false, | ||
}, | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.