{"id":19431831,"url":"https://github.com/nicksp/angular-ascii-warehouse","last_synced_at":"2026-04-11T20:11:20.296Z","repository":{"id":149879898,"uuid":"56462508","full_name":"nicksp/angular-ascii-warehouse","owner":"nicksp","description":"Sample warehouse Angular application","archived":false,"fork":false,"pushed_at":"2016-04-17T23:46:26.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-07T20:22:31.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nicksp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-17T22:48:07.000Z","updated_at":"2016-09-01T09:07:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"0adc01e4-792f-4b14-b34f-3fdd03a7a0f8","html_url":"https://github.com/nicksp/angular-ascii-warehouse","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/nicksp%2Fangular-ascii-warehouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicksp%2Fangular-ascii-warehouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicksp%2Fangular-ascii-warehouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicksp%2Fangular-ascii-warehouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicksp","download_url":"https://codeload.github.com/nicksp/angular-ascii-warehouse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240612550,"owners_count":19829027,"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-11-10T14:32:15.264Z","updated_at":"2026-04-11T20:11:15.258Z","avatar_url":"https://github.com/nicksp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ascii eShop\n\nThis is an ecommerce site, where you can buy all sorts of ascii faces like `(ノ・∀・)ノ` and `¯_(ツ)_/¯`, in a wide variety of font sizes. The homepage should display a list of products for people to browse.\n\n## Installing and Running App\n\n- `cd angular-ascii-warehouse`\n- `npm i -g nodemon`\n- `gem install sass` (___if not installed___)\n- `npm i`\n- `npm run build`\n- `npm start` (uses `nodemon`)\n- Open http://localhost:8000 in your browser\n\n### Implemented Features\n\n- display the products in a grid.\n- give the user an option to sort the products in ascending order. Can sort by \"size\", \"price\" or \"id\".\n- each product has :\n  - a \"size\" field, which is the font-size in pixels. We should display the faces in their correct size, to give customers a realistic impression of what they're buying.\n  - a \"price\" field, in cents. This should be formatted as dollars like `$3.51`.\n  - a \"date\" field, which is the date the product was added to the catalog. Dates should be displayed in relative time (eg. \"3 days ago\") unless they are older than 1 week, in which case the full date should be displayed.\n- the product grid should automatically load more items as you scroll down.\n- our product database is under high load due to growing demand for ascii, so please display an animated \"loading...\" message while the user waits.\n- to improve the user's experience, we should always pre-emptively fetch the next batch of results in advance, making use of idle-time.  But they still should not be displayed until the user has scrolled to the bottom of the product grid.\n- when the user reaches the end and there are no more products to display, show the message \"~ end of catalogue ~\".\n\n## Products API\n\n- The basic query looks like this: `/api/products`\n- The response format is newline-delimited JSON.\n- To get a larger results set use the `limit` parameter, eg: `/api/products?limit=100`\n- To paginate results use the `skip` parameter, eg: `/api/products?limit=15\u0026skip=30` (returns 15 results starting from the 30th).\n- To sort results use the `sort` parameter, eg: `/api/products?sort=price`. Valid sort values are `price`, `size` and `id`.\n\n## Ads\n\n- after every 20 products we need to insert an advertisement from one of our sponsors. Use the same markup as the advertisement in the header, but make sure the `?r` query param is randomly generated each time an ad is displayed.\n- Ads should be randomly selected, but a user must never see the same ad twice in a row.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicksp%2Fangular-ascii-warehouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicksp%2Fangular-ascii-warehouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicksp%2Fangular-ascii-warehouse/lists"}