Graphic Motion Video Art, Website, IT Network, Culture

Loading...
Project Hosting Files using TortoiseSVN Google Code

Google Code is one of the google services for free to use as a storage to place any script code projects that you have ( Javascript, PHP, Ajax, CSS and others). The script code projects that you have can be used to make lighten of your website or blog because google code has a high capacity and bandwidth to place such a script code projects, you no need to worry about it. By the way, what is can not be done for the master code. Google code that used as the storage to save script code project, for now is not just limited only for that purpose, adding config code that allow you to use google code  to save many kind of extensions files. So Google Code is not only to be storage of your script code, but you can use Google Code as files hosting in the various extensions of  files that you need.


With Google Code you can use as a additional file storage with maximum capacity until 2 GB with with unlimited bandwidth by google, you know. So if you want your website or blog loading more faster,  google code can be  help you as the best alternative way to keep your files or script code project that can be shared easily.

I will explain how to create the project of the google code as your own. The script code that is very long may, not all used during the first loading. If we put the long script code, we just need to put the of the script code project. Some hosting place with the lower price sometime will give you limited storage and bandwidth so the google code can be your choice to keep save your storage, reduce the consumption of your limited storage for your hosting place of your website. If you have blog, the long script code can be minify and make the process loading more faster.

1. Firstly go to Google Code and then you log in with your google account that you have. Then you create the file project as the address where you will place the script code or the extension files that you need to save.


2. Click on Create a New Project will shown like the left picture above. After that fill the new project form as shown like the right picture above, after you filled that form click create project button! The new project of yours have been created.


3. After your project was created, you need to find username and password that was given by google code that allow you to access the project through https address directly from you computer using TortoiseSVN. At the new project that was created, click Source tab then click on googlecode.com password as shown as the picture bellow. You can change the password by clicking on Regenerate password.

 
4. Install TortoiseSVN on your computer. You can go to http://tortoisesvn.net/downloads.html for download the installer. There are type of installer, select according with the specification of your computer and operation system. After you download you can install it by your self ( or you can see on the video) and then restart your computer. This is because tortoisesvn application integrated with the right click (shell command) menu on your operation system.


5. Add the following code  into the config file of tortoisesvn  that you already installed.

[miscellany]
enable-auto-props = yes

[auto-props]
# Scriptish formats
*.bat        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
*.bsh        = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-beanshell
*.cgi        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
*.cmd        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
*.js         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/javascript
*.php        = svn:eol-style=native; svn:keywords=Id Rev Date; svn:mime-type=text/x-php
*.pl         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl; svn:executable
*.pm         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl
*.py         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-python; svn:executable
*.sh         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-sh; svn:executable

# Image formats
*.bmp        = svn:mime-type=image/bmp
*.gif        = svn:mime-type=image/gif
*.ico        = svn:mime-type=image/ico
*.jpeg       = svn:mime-type=image/jpeg
*.jpg        = svn:mime-type=image/jpeg
*.png        = svn:mime-type=image/png
*.tif        = svn:mime-type=image/tiff
*.tiff       = svn:mime-type=image/tiff

# Data formats
*.pdf        = svn:mime-type=application/pdf
*.avi        = svn:mime-type=video/avi
*.doc        = svn:mime-type=application/msword
*.eps        = svn:mime-type=application/postscript
*.gz         = svn:mime-type=application/gzip
*.mov        = svn:mime-type=video/quicktime
*.mp3        = svn:mime-type=audio/mpeg
*.ppt        = svn:mime-type=application/vnd.ms-powerpoint
*.ps         = svn:mime-type=application/postscript
*.psd        = svn:mime-type=application/photoshop
*.rtf        = svn:mime-type=text/rtf
*.swf        = svn:mime-type=application/x-shockwave-flash
*.tgz        = svn:mime-type=application/gzip
*.wav        = svn:mime-type=audio/wav
*.xls        = svn:mime-type=application/vnd.ms-excel
*.zip        = svn:mime-type=application/zip

# Text formats
.htaccess    = svn:mime-type=text/plain
*.css        = svn:mime-type=text/css
*.dtd        = svn:mime-type=text/xml
*.html       = svn:mime-type=text/html
*.ini        = svn:mime-type=text/plain
*.sql        = svn:mime-type=text/x-sql
*.txt        = svn:mime-type=text/plain
*.xhtml      = svn:mime-type=text/xhtml+xml
*.xml        = svn:mime-type=text/xml
*.xsd        = svn:mime-type=text/xml
*.xsl        = svn:mime-type=text/xml
*.xslt       = svn:mime-type=text/xml
*.xul        = svn:mime-type=text/xul
*.yml        = svn:mime-type=text/plain
CHANGES      = svn:mime-type=text/plain
COPYING      = svn:mime-type=text/plain
INSTALL      = svn:mime-type=text/plain
Makefile*    = svn:mime-type=text/plain
README       = svn:mime-type=text/plain
TODO         = svn:mime-type=text/plain

# Code formats
*.c          = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.cpp        = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.h          = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.java       = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.as         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.mxml       = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain

# Webfonts
*.eot        = svn:mime-type=application/vnd.ms-fontobject
*.woff       = svn:mime-type=application/x-font-woff
*.ttf        = svn:mime-type=application/x-font-truetype
*.svg        = svn:mime-type=image/svg+xml

Right click on the desktop will shown as the right picture above, then click on the settings, will appear as the left picture below. Then click on edit button will show the config file of TortoiseSVN, that would be added as the very last code (at the bottom of “# Makefile = svn:eol-style=native”)with the new script code above. And then save the config file that you just change.

 
6. Hosting the file by right click again on desktop and select  Repo-browser, will show like the left picture bellow. Insert the the url of your project with the the following url format!
https://your-project-name.googlecode.com/svn/trunk/


After the project was loaded, drag the file that you want to upload into your https project window. The time is come to insert username and password of the project that you have.  Give a checkbox on save authentication for the next not require login if you the file again.

To check the result on every files looks like, use the following format on your browser. You can use this format link, if you want to insert the file into your site code (http not https)
http://your–project-name.googlecode.com/svn/trunk/
Something maybe, if you want to change the content of the file that you have uploaded. You can change by typing on your browser the following url format
http://code.google.com/p/your-project-name/source/browse/trunk/
For more details let’s see the article video. Unfortunetely google code will be turning down, prepare to use or move the project hosting to GitHub as the solution, I welcome you in Github Tutorial, see you!

Share This Article :
Related Articles

1 comment :

  1. Great information. Google Code seems to be a better choice than Google Drive for this purpose.

    ReplyDelete

Back to Top