Skip to content

Commit

Permalink
v1.6.0
Browse files Browse the repository at this point in the history
 - New address for demo: https://files.veliov.com
 - Use AWS:S3 as storage
 - New design
 - PDF preview
 - GitHub Markdown support and highlighting
 - Basic SEO
 - Valid Schema.org markup
 - Accounts: Now you can login via Facebook, Twitter, GitHub or Meteor
account. And have your private or unlisted files
  • Loading branch information
dr-dimitru committed Jul 2, 2016
1 parent 06344bf commit 9760c59
Show file tree
Hide file tree
Showing 13,665 changed files with 512,017 additions and 479,013 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .node_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.10.43
v0.10.45
71 changes: 63 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/VeliovGroup/Meteor-Files-Demo)

Demo app for [ostrio:files](https://github.com/VeliovGroup/Meteor-Files) package
Demo app
======
__Links:__
- __[Heroku hosted Live Demo](https://meteor-files.herokuapp.com/)__
- [ostrio:files](https://github.com/VeliovGroup/Meteor-Files) package
- __[Heroku hosted Live Demo](https://files.veliov.com/)__

__Functionality:__
- Upload / Download Files
- Stream Audio / Video Files
- Images, PDFs, Texts preview
- Drag'n'drop support (*files only, folders is not supported yet*)
- Image processing (*thumbnails, preview*)
- DropBox as storage
- DropBox as storage (__note:__ *you can use only one of DropBox or S3 at the same app*)
- AWS:S3 as storage (__note:__ *you can use only one of DropBox or S3 at the same app*)
- Login via social networks (*allows to make uploaded files unlisted and/or private*)
- Heroku support (*including one-click-deploy*)

Activate AWS:S3
======
1. Read [this article](https://github.com/VeliovGroup/Meteor-Files/wiki/AWS-S3-Integration)
2. After creating S3 bucket, create CloudFront Distribution and attach it to S3 bucket
3. Set S3 credentials into `METEOR_SETTINGS` env.var or pass as file, read [here for more info](http://docs.meteor.com/#/full/meteor_settings), alternatively (*if something not working*) set `S3` env.var
4. You can pass S3 credentials as JSON-string when using "*Heroku's one click install-button*"

S3 credentials format (*region and cfdomain is required*):
```json
{
"s3": {
"key": "xxx",
"secret": "xxx",
"bucket": "xxx",
"region": "xxx",
"cfdomain": "https://xxx.cloudfront.net"
}
}
```

Activate DropBox
======
1. Read [this article](https://github.com/VeliovGroup/Meteor-Files/wiki/Third-party-storage)
1. Read [this article](https://github.com/VeliovGroup/Meteor-Files/wiki/DropBox-Integration)
2. Set DropBox credentials into `METEOR_SETTINGS` env.var or pass as file, read [here for more info](http://docs.meteor.com/#/full/meteor_settings), alternatively (*if something not working*) set `DROPBOX` env.var
3. You can pass DropBox credentials as JSON when using "*Heroku's one click install-button*"
3. You can pass DropBox credentials as JSON-string when using "*Heroku's one click install-button*"

DropBox credentials format:
```json
Expand All @@ -30,9 +53,25 @@ DropBox credentials format:
}
```

Activate Social Logins
======
All credentials is set via env.var(s), if you're using "*Heroku's one click install-button*" - you will be able to pass all of them.
- Facebook - [Create an App](https://developers.facebook.com/apps/):
* secret: `ACCOUNTS_FACEBOOK_SEC`
* appId: `ACCOUNTS_FACEBOOK_ID`
- Twitter - [Create an App](https://apps.twitter.com):
* secret: `ACCOUNTS_TWITTER_SEC`
* consumerKey: `ACCOUNTS_TWITTER_ID`
- GitHub - [Create OAuth App](https://github.com/settings/developers):
* secret: `ACCOUNTS_GITHUB_SEC`
* clientId: `ACCOUNTS_GITHUB_ID`
- Meteor Developer - [Create an App](https://www.meteor.com/account-settings):
* secret: `ACCOUNTS_METEOR_SEC`
* clientId: `ACCOUNTS_METEOR_ID`

Deploy to Heroku
======
- Due to "*ephemeral filesystem*" on Heroku, we suggest to use DropBox as permanent storage, [read DropBox tutorial](https://github.com/VeliovGroup/Meteor-Files/wiki/Third-party-storage)
- Due to "*ephemeral filesystem*" on Heroku, we suggest to use DropBox/AWS:S3 as permanent storage, [read DropBox/S3/GridFS tutorial](https://github.com/VeliovGroup/Meteor-Files/wiki/Third-party-storage)
- Go to [Heroku](https://signup.heroku.com/dc) create and confirm your new account
- Go though [Node.js Tutorial](https://devcenter.heroku.com/articles/getting-started-with-nodejs)
- Install [Heroku Toolbet](https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up)
Expand All @@ -46,6 +85,8 @@ heroku create <your-app-name> --buildpack https://github.com/heroku/heroku-build
# This command will output something like:
# - https://<your-app-name>.herokuapp.com/
# - https://git.heroku.com/<your-app-name>.git

git init
heroku git:remote -a <your-app-name>

# Copy this: `https://<your-app-name>.herokuapp.com`, note `http(s)://` protocol
Expand All @@ -58,10 +99,24 @@ heroku config:set MONGO_URL=mongodb://<dbuser>:<dbpassword>@dt754268.mlab.com:19
# For DropBox:
# heroku config:set DROPBOX='{"dropbox":{"key": "xxx", "secret": "xxx", "token": "xxx"}}'

# For AWS:S3:
# heroku config:set S3='{"s3":{"key": "xxx", "secret": "xxx", "bucket": "xxx", "region": "xxx", "cfdomain": "https://xxx.cloudfront.net"}}'

# For Facebook:
# heroku config:set ACCOUNTS_FACEBOOK_ID=xxx ACCOUNTS_FACEBOOK_SEC=yyy

# For Twitter:
# heroku config:set ACCOUNTS_TWITTER_ID=xxx ACCOUNTS_TWITTER_SEC=yyy

# For GitHub:
# heroku config:set ACCOUNTS_GITHUB_ID=xxx ACCOUNTS_GITHUB_SEC=yyy

# For Meteor Developer:
# heroku config:set ACCOUNTS_METEOR_ID=xxx ACCOUNTS_METEOR_SEC=yyy

# Enable sticky sessions, to support HTTP upload:
heroku features:enable http-session-affinity

git init
git add .
git commit -m "initial"
git push heroku master
Expand Down
127 changes: 99 additions & 28 deletions programs/server/app/lib/__compatability/__globals.coffee.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9760c59

Please sign in to comment.