{"_id":"553d394e9660ba0d00569d14","project":"543467200ef9c00800164ecc","category":{"_id":"553d394d9660ba0d00569d08","pages":["553d394e9660ba0d00569d13","553d394e9660ba0d00569d14","553d394e9660ba0d00569d15","553d394e9660ba0d00569d16","553d394e9660ba0d00569d17","553d394e9660ba0d00569d18","553d394e9660ba0d00569d19","553d394e9660ba0d00569d1a","553d394e9660ba0d00569d1b","553d394e9660ba0d00569d1c","553d394e9660ba0d00569d1d","553d394e9660ba0d00569d1e","553d394e9660ba0d00569d1f","553d394e9660ba0d00569d20","553d394e9660ba0d00569d21","553d394e9660ba0d00569d22","553d394e9660ba0d00569d23"],"project":"543467200ef9c00800164ecc","version":"553d394d9660ba0d00569d07","__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-15T18:00:23.862Z","from_sync":false,"order":0,"slug":"glim","title":"GLIM"},"githubsync":"","user":"543466ea0e8e2b0e00341818","version":{"_id":"553d394d9660ba0d00569d07","project":"543467200ef9c00800164ecc","forked_from":"54bedb2fffb79c320030db1f","__v":1,"createdAt":"2015-04-26T19:15:25.245Z","releaseDate":"2015-04-26T19:15:25.245Z","categories":["553d394d9660ba0d00569d08","553d394d9660ba0d00569d09"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"0.11.2","version":"0.11.2"},"__v":0,"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-15T17:30:47.965Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"never","params":[],"url":""},"isReference":false,"order":1,"body":"Glim framework source resides in pypi which is the most popular python repository service. You can download glim and create a simple app by the following;\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# create a project folder\\nmkdir project\\ncd project\\n\\n# create & activate virtualenv\\nvirtualenv venv\\n. venv/bin/activate\\n\\n# install glim from pypi\\npip install glim\\n\\n# prints glim help\\nglim --help\\n\\n# create a new app\\nglim new\\n\\n# start the app\\nglim start\\n\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nIf you don't have virtualenv & pip you can install them by the following;\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# install pip\\nsudo easy_install pip\\n\\n# install virtualenv\\nsudo easy_install virtualenv\\n# OR\\nsudo pip install virtualenv\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"virtualenv\",\n  \"body\": \"It's completely optional to use virtualenv. However, to make the app work seperated from project, glim changes stuff in python system path. Therefore, it's highly recommended to use it.\"\n}\n[/block]\nOptionally, if you want multiple apps to run with the same glim, obviously you don't need to install it on seperate virtual environments. You can also create & start a glim app by the following;\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# create a project in project folder\\nglim new project\\ncd project\\n\\n# start the project\\nglim start\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"cwd path\",\n  \"body\": \"Glim currently requires to be run with the current working directory path. Therefore, `$ glim start project` won't run the app. It's needed to be run **inside** project folder.\\n\\nThis issue will be addressed in the further releases of project\"\n}\n[/block]","excerpt":"","slug":"quick-start","type":"basic","title":"Installation & Quick Start"}

Installation & Quick Start


Glim framework source resides in pypi which is the most popular python repository service. You can download glim and create a simple app by the following; [block:code] { "codes": [ { "code": "# create a project folder\nmkdir project\ncd project\n\n# create & activate virtualenv\nvirtualenv venv\n. venv/bin/activate\n\n# install glim from pypi\npip install glim\n\n# prints glim help\nglim --help\n\n# create a new app\nglim new\n\n# start the app\nglim start\n", "language": "shell" } ] } [/block] If you don't have virtualenv & pip you can install them by the following; [block:code] { "codes": [ { "code": "# install pip\nsudo easy_install pip\n\n# install virtualenv\nsudo easy_install virtualenv\n# OR\nsudo pip install virtualenv", "language": "shell" } ] } [/block] [block:callout] { "type": "info", "title": "virtualenv", "body": "It's completely optional to use virtualenv. However, to make the app work seperated from project, glim changes stuff in python system path. Therefore, it's highly recommended to use it." } [/block] Optionally, if you want multiple apps to run with the same glim, obviously you don't need to install it on seperate virtual environments. You can also create & start a glim app by the following; [block:code] { "codes": [ { "code": "# create a project in project folder\nglim new project\ncd project\n\n# start the project\nglim start", "language": "shell" } ] } [/block] [block:callout] { "type": "warning", "title": "cwd path", "body": "Glim currently requires to be run with the current working directory path. Therefore, `$ glim start project` won't run the app. It's needed to be run **inside** project folder.\n\nThis issue will be addressed in the further releases of project" } [/block]