This app showcases the Parse Image Module using Parse Hosting. It's an app that allows users to upload images and share them. It resizes the images into two smaller sizes, and gives users the option to share specific sizes with others.
You can check out the official hosted version at www.anyimg.org.
-
Create a new app on Parse, and make sure you go through the installation section for Cloud Code.
-
Set the "parse" subdirectory of the project to be the current directory and type
parse new .
, authenticate with your Parse credentials, and choose the app name you created. -
Delete
public/index.html
-
Edit
cloud/views/layout.ejs
and put in your Parse Application ID and Parse JavaScript Key in theParse.initialize
call. You can find your app keys in your app settings page under "Application Keys". -
Type
parse deploy
. This deploys your app to Parse. -
Now, we'll need to configure the url where you can reach your app. Go to your app settings page and set a unique subdomain for your Web Hosting url.
-
Go to yoursubdomain.parseapp.com and view your copy of Anyimg!
-
Optional: If you want to change the CSS, make sure to run "compass watch" so that the .scss files will get compiled into css files in the
parse
folder. To get compass, go here: http://compass-style.org