The source code of MediaGrid consists of two parts: chat and media. The function of media is to The source code tree of chat is shown in the figure.
The main function code also lies in folder “script”. And here’s a brief introduction to the files contained in the folder:
- app.js: Return or update list of files.
- jquery.js: JQuery library files.
- startpage.js: Controls the action of main page.
- services.js: CouchDB operations, such as upload files, create directories.
And files.html shows the table list of files, while index.html is the layout of main page.