Giter Site home page Giter Site logo

swen-3000-assigment-1's Introduction

SWEN 3000 Assigment 1

FileExplorer

  1. Create a github account, and fork this project.

  2. Clone the forked repostories with git locally

You can try git in command line with Terminal.app

git clone https://github.com/[YOUR_GITHUB_ID]/SWEN-3000-Assigment-1.git
  1. Open the Terminal, run the server

Install tornado

pip install tornado

If you have python2.7 and there is no pip command, try this

sudo easy_install pip
sudo pip install tornado

Run web.py script

python server/web.py

Make sure the web API service is available at port 8000

  1. Test the API by visiting the address in web browser

     http://127.0.0.1:8000/?folder=[FOLDER_NAME]
    

The API return format in JSON as a dictionary

{
    "folders": ["folder1", "folder2"],
    "files": ["file1", "file2"],
    "current": "[CURRENT_FOLDER_NAME]",
    "parent": "[PARENT_FOLDER_NAME]",
}

When current is equal to parent and they are both empty string, it means we are already at the root folder.

  1. Open Xcode and build the FileExplorer

swen-3000-assigment-1's People

Contributors

kernel1983 avatar nicsmi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.