{"id":16805130,"url":"https://github.com/mdmintz/sails-demo-app","last_synced_at":"2025-04-11T01:20:28.403Z","repository":{"id":119154060,"uuid":"328502465","full_name":"mdmintz/sails-demo-app","owner":"mdmintz","description":"Sails.js demo app. Tested with SeleniumBase.","archived":false,"fork":false,"pushed_at":"2025-03-22T19:29:21.000Z","size":1180,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T20:26:36.736Z","etag":null,"topics":["sails","sails-js","sailsjs","seleniumbase"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdmintz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-10T23:41:32.000Z","updated_at":"2025-03-22T19:29:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"28e83942-38ff-4ad1-bf6c-9311c39be055","html_url":"https://github.com/mdmintz/sails-demo-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmintz%2Fsails-demo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmintz%2Fsails-demo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmintz%2Fsails-demo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdmintz%2Fsails-demo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdmintz","download_url":"https://codeload.github.com/mdmintz/sails-demo-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248323114,"owners_count":21084442,"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":["sails","sails-js","sailsjs","seleniumbase"],"created_at":"2024-10-13T09:47:12.738Z","updated_at":"2025-04-11T01:20:28.380Z","avatar_url":"https://github.com/mdmintz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ⛵ A [Sails.js](https://sailsjs.com) web app with UI tests. ✅\n\n\u003cdiv\u003e\u003ca href=\"https://github.com/mdmintz/sails-demo-app/actions\"\u003e\n\u003cimg src=\"https://github.com/mdmintz/sails-demo-app/workflows/CI%20build/badge.svg\" alt=\"SeleniumBase GitHub Actions\" /\u003e\u003c/a\u003e \u003ca href=\"https://github.com/seleniumbase/SeleniumBase\"\u003e\u003cimg src=\"https://img.shields.io/badge/tested%20with-SeleniumBase-04C38E.svg\" alt=\"Tested with SeleniumBase\" /\u003e\u003c/a\u003e\u003c/div\u003e\n\n(You'll need [npm](https://www.npmjs.com/get-npm) to run the web app, and [Python 3](https://www.python.org/downloads/) to run the UI tests with [SeleniumBase](https://github.com/seleniumbase/SeleniumBase).)\n\n\u003cp align=\"left\"\u003e\u003ca href=\"https://github.com/mdmintz/sails-demo-app/blob/master/ui_tests/test_sails_app.py\"\u003e\u003cimg src=\"https://seleniumbase.io/cdn/gif/sails_app_gif.gif\" alt=\"SeleniumBase Test for the SailsJS Demo App\" title=\"SeleniumBase Test for the SailsJS Demo App\" width=\"400\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\n#### This app was initially generated by:\n\n```bash\nnpm install sails -g\nsails new sails_demo_app --fast\n```\n\n#### ⛵ To complete the setup, run:\n\n```bash\nnpm install\n```\n\n#### ⛵ To start the server, run:\n\n```bash\nnode app.js\n# - OR - #\nsails lift\n```\n\n#### ⛵ To view the website, go to: [http://localhost:1337](http://localhost:1337)\n\n(The app will stay up while the server is running.)\n\n### Test Environment Setup / Running Tests\n\n(In a separate terminal / command prompt.)\n\n#### 🔵 Go to the ``ui_tests/`` folder:\n\n```bash\ncd ui_tests/\n```\n\n#### 🔵 Create a Python virtual environment:\n\n```bash\n# Linux / macOS instructions\npython3 -m venv sbase_env\nsource sbase_env/bin/activate\n\n# Windows instructions\npy -m venv sbase_env\ncall sbase_env\\\\Scripts\\\\activate\n```\n\n#### 🔵 Install SeleniumBase + Chromedriver\n\n```bash\npip install seleniumbase --upgrade\nseleniumbase install chromedriver\n```\n\n#### 🔵 Run the tests\n\n```bash\npytest -v --rs --crumbs --dashboard\n```\n\n✅ Here's what all those options do:\n\n* ``-v`` : Display each test on a separate line.\n* ``--rs`` : Reuse the browser session between tests.\n* ``--crumbs`` : Clear cookies between tests using ``--rs``.\n* ``--dashboard`` : Output test results to ``dashboard.html``.\n\n--------\n\n### SeleniumBase Links\n\n+ [SeleniumBase GitHub Repo](https://github.com/seleniumbase/SeleniumBase)\n+ [SeleniumBase Docs Site](https://seleniumbase.io/)\n\n### Sails Links\n\n+ [Sails framework documentation](https://sailsjs.com/get-started)\n+ [Version notes / upgrading](https://sailsjs.com/documentation/upgrading)\n+ [Deployment tips](https://sailsjs.com/documentation/concepts/deployment)\n+ [Community support options](https://sailsjs.com/support)\n\n\n### Sails Version info\n\nThis app was generated using Sails v1.4.0 on Jan 10, 2021.\n\n\u003c!-- Internally, Sails used [`sails-generate@2.0.1`](https://github.com/balderdashy/sails-generate/tree/v2.0.1/lib/core-generators/new). --\u003e\n\nThis project's boilerplate is based on an expanded seed app provided by the [Sails core team](https://sailsjs.com/about) to make it easier for you to build on top of ready-made features like authentication, enrollment, email verification, and billing.\n\n\u003c!--\nNote:  Generators are usually run using the globally-installed `sails` CLI (command-line interface).  This CLI version is _environment-specific_ rather than app-specific, thus over time, as a project's dependencies are upgraded or the project is worked on by different developers on different computers using different versions of Node.js, the Sails dependency in its package.json file may differ from the globally-installed Sails CLI release it was originally generated with.  (Be sure to always check out the relevant [upgrading guides](https://sailsjs.com/upgrading) before upgrading the version of Sails used by your app.)\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdmintz%2Fsails-demo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdmintz%2Fsails-demo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdmintz%2Fsails-demo-app/lists"}