Create your own free unlimited cloud storage! Our tool uses GitHub-as-a-storage to save there the uploaded files. You can use our deployed tool or run it by yourself - see below for instructions.
We were banned by GitHub, so this project is for test use only!
TL;DR: you need to create a GitHub token and add it to deployed repo as GITHUB_TOKEN environment variable.
Or just watch a video:
- Register on GitHub and go to Settings -> Developer Settings -> Personal Access Tokens -> Generate new token
- Give it a random name, select public repo and scroll below and smash Generate. You don't have to add any additional rights if you want to store your files on public repositories.
Heroku allows to create free small machines and deploy from GitHub in one click. You will need to have a Heroku account to proceed, so please register.
- Press the button below to deploy with one click
- Choose any app name you like
-
Click the 'Manage App' at the bottom of the page
-
Click 'Settings' and 'Reveal Config Vars'
-
Set the key to GITHUB_TOKEN and the value to the generated on the previous steps GitHub token.
- Smash 'Open app' and enjoy!
If you don't like . Heroku, you can deploy manually.
git clone https://github.com/morejust/store
Start server:
npm run dev
Start client:
cd client
npm start
Here is the list of all possible config variables that can be changed (except GITHUB_TOKEN that is required and was set earlier). If you decide to use this config variables, you should specify them as environment variables.
- BLOCK_SIZE_MB - max block (github repo) size. Default value = 1000
- MAX_FILE_SIZE_MB - max file size that can be uploaded. Default value = 100
- GITHUB_ORGANIZATION - used to create blocks in the organization Github account, not in your private account. Default value - not set.
To use this heroku-deploy
branch:
git checkout heroku-deploy
git fetch
git reset --hard origin/master
npm run build-front
git add client/build
git commit --allow-empty -m "build heroku"
git push --force
git checkout master
or simply
npm run deploy
From any folder you can launch:
bash add_file.sh $NAME_OF_bLOCK_REPO $AbSOLUTE_PATH_TO_FILE
Keep in mind that you should have a push access to the repository. If you want to create a new repo for files (we call it 'block'), you should have the rights to create a new repo.
Creators: Dan Okhlopkov, Viktor Kirillov, Alexey Bykhun.