{"id":22727277,"url":"https://github.com/noviel/osnova-mobile-template","last_synced_at":"2025-03-30T00:23:44.316Z","repository":{"id":57316581,"uuid":"62073388","full_name":"Noviel/osnova-mobile-template","owner":"Noviel","description":"Backbone for Client/Server application for Web/Android/iOS and node.js with built-in ES6 syntax support.","archived":false,"fork":false,"pushed_at":"2016-08-24T19:06:42.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T08:48:26.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Noviel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-27T17:06:34.000Z","updated_at":"2017-01-24T11:31:11.000Z","dependencies_parsed_at":"2022-08-25T20:31:59.131Z","dependency_job_id":null,"html_url":"https://github.com/Noviel/osnova-mobile-template","commit_stats":null,"previous_names":["noviel/osnova-application-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noviel%2Fosnova-mobile-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noviel%2Fosnova-mobile-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noviel%2Fosnova-mobile-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noviel%2Fosnova-mobile-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Noviel","download_url":"https://codeload.github.com/Noviel/osnova-mobile-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246260470,"owners_count":20748858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T17:11:37.144Z","updated_at":"2025-03-30T00:23:44.284Z","avatar_url":"https://github.com/Noviel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#OSNOVA: Client+Server application template\n\n###bI\nBackbone for Client/Server application for Android/iOS and browsers and node.js with built-in ES6 syntax support.\nWow such ready-to-go much time to watch anime.\n\n###Features\n- Cordova for building Android/iOS mobile application.\n- Cutting edge features of ES6 on any environment.\n- Express.js as core of web server.\n- Mongoose for working with database.\n- Socket.IO for real-time client-server communication.\n- Webpack for building client code for web and mobile.\n\n###Install\n\n####via git (preferable)\n\n    git clone git@github.com:Noviel/osnova-application-template.git \u003cyour-application-name\u003e\n\n####or via download\n\n    https://github.com/Noviel/osnova-application-template/archive/master.zip\n  and uznip to new project directory.\n\n####or via npm\n\n    npm install osnova-application-template\n  and then cut'n'paste content of `/node_modules/osnova-application-template` to the root of your project.\n\n###Prepare\n\n####Common\n- Go to `\u003cyour-application-name\u003e` root directory.\n- Delete `.git` directory.\n- `npm run prepare` to install dependencies.\n- Set in `package.json` information about your application.\n\n####Mobile\n\nYou can skip this step, if you don't need mobile application.\nAndroid/iOS SDKs must be installed in order to build it.\n\nInstall Cordova CLI if u don't have it yet:\n\n    npm install -g cordova\n\nInstall Cordova's dependencies:\n    \n    npm run prepare-mobile\n    \nPut your application information in `/mobile/config.xml`.\n\n###Workflow\n\n- Write some cool code in `src/client` and `src/server` folders.\n\n`index.js` in both directories are entry points for web-client/server.\n`index.mobile.js` is an entry point for mobile application.\n\nThis system is server-first in some aspects.\nCommon code used at the server and at the client is treated as more server-side and should be located in `src/server/`.\nOn a client you can just write `require('../server/your-common-lib')` and it will be compiled by Webpack on the build step.\n\n`/dev.tools/` - for development stage helpers (Webpack config, Gulp, etc).\n`/private/`- for server-only compiled resources such as templates.\n`/public/` - for public web client files.\n`/server/` - for compiled server code.\n\n`/mobile/` is location of the Cordova's project.\nIn `/mobile/www/` folder are placed compiled files that ready to be built by Cordova.\n\n###Building\n\n- `npm run build-server` to build server code.\n`Babel` transpiles server's code and puts it into `/server/` directory.\n\n- `npm run build-client` to build client code for web.\n`Webpack` compiles from `/src/client/` to a single `index.js` transpiled to ES5 by `Babel` and puts it in `/public/js/`. \n\n- `npm run build-client-mobile` to build client code for mobile.\n`Webpack` compiles from `/src/client/` to a single `index.js` transpiled to ES5 by `Babel` and puts it in `/mobile/www/js/`. \n\n- `npm run build` - build server and web client.\n\n\n####Mobile\n- `cd mobile`\n- `cordova build \u003candroid|ios\u003e`\n\nSee more at  [Cordova's documentation](http://cordova.apache.org/docs/en/latest/guide/cli/index.html#build-the-app).\n\n\n###Testing\n- Run some tests.\n\n###Publishing\n- Launch your application in production.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoviel%2Fosnova-mobile-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoviel%2Fosnova-mobile-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoviel%2Fosnova-mobile-template/lists"}