{"id":20472689,"url":"https://github.com/maxpou/mean-apispark-beer","last_synced_at":"2026-04-08T18:01:27.461Z","repository":{"id":68227423,"uuid":"44597627","full_name":"maxpou/mean-apispark-beer","owner":"maxpou","description":"MEAN Stack in 3 steps (+ ApiSpark :honeybee:)","archived":false,"fork":false,"pushed_at":"2016-05-16T15:03:52.000Z","size":1554,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T15:30:51.869Z","etag":null,"topics":["angularjs","apispark","express","mean","mongodb","nodejs","poc"],"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/maxpou.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":"2015-10-20T10:01:31.000Z","updated_at":"2016-12-17T23:43:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"33479078-cdb2-45b9-8d7d-0df6590aaf6e","html_url":"https://github.com/maxpou/mean-apispark-beer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxpou/mean-apispark-beer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpou%2Fmean-apispark-beer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpou%2Fmean-apispark-beer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpou%2Fmean-apispark-beer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpou%2Fmean-apispark-beer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxpou","download_url":"https://codeload.github.com/maxpou/mean-apispark-beer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpou%2Fmean-apispark-beer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31567227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angularjs","apispark","express","mean","mongodb","nodejs","poc"],"created_at":"2024-11-15T14:21:18.427Z","updated_at":"2026-04-08T18:01:27.436Z","avatar_url":"https://github.com/maxpou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/maxpou/mean-apispark-beer.svg?branch=master)](https://travis-ci.org/maxpou/mean-apispark-beer)\n\n# :beer: Beer app :beer:\n\nI really want to learn MEAN Stack. But I want to do this step by step.\nSo I've decided to proceed in 3 steps:\n\n1. AngularJS with a json file\n2. AngularJs + Web API (by using APISpark)\n3. MEAN Stack (Mongodb, Express, AngularJs \u0026 Node.js)\n\nI also decide do work with beer, because it's funniest than contact, products, todo-task, ...\nThanks to [@lostinbrittany](https://twitter.com/lostinbrittany) for his json file and images.\n\nI also use twitter Bootstrap because I won't spend time to code css.\n\n*If you found a typo or a mistake somewhere, please fork and edit this post. Thank you :)*\n\n## Installation\n\n1. Download the code\n2. Install the npm modules: ```npm install```  \nUse the ```--no-bin-links``` argument if it fails.\n\n## Step 1: AngularJs - json file\n\nHere, you can manage your beers with CRUD operations.  \nNote that all fields are mandatory (except description).\n\n## Step 2: AngularJs + Web API (APISpark)\n\n![APISpark logo](http://i1.wp.com/restlet.dreamhosters.com/wp-content/uploads/2012/08/0111_apispark_logo.png?resize=352%2C120)\n\nIn a nutshell, [APISpark](http://restlet.com/products/apispark/) is a Platform-as-a-Service dedicated to web API. You can manage, host, consume API for [free (if you use less than \"10 Concurrent Clients\")](http://restlet.com/products/apispark/#pricing).\n\nHere, my Web API is **public**. So you can access to my [dashboard](https://apispark.restlet.com/apis/14055/versions/1/overview).\n\nIf data are empty, or if you find errors, please reinitialize the database (**Reinitialize** button).\n\nNote: [Further reading about JS Promise](https://github.com/getify/You-Dont-Know-JS/blob/master/async%20\u0026%20performance/ch3.md) (because it's a so powerful feature ;-))\n\n## Step 3: MEAN Stack (Mongodb, Express, AngularJs \u0026 Node.js)\n\n1. Initialize database (2 ways):\n  * Import data with json file: ```mongoimport --db beers --collection beers --jsonArray step1/beer-list.json```\n  * Or : Use the *reinitialize button* \n2. In the server/server.js file, change the endpoint according to your configuration (replace *scotch.local:3000* to something like *localhost:3000*).  \n3. Start the server: ```npm start```.  \nYou will need nodemon : ```npm install -g nodemon```\n4. Visit the application in your browser at http://localhost:3000/ (you will see \"Hello beer!\")\n5. Enjoy beer :beer:\n\n**Tests:**  \n\n1. Install mocha: `npm install -g mocha`\n2. Run tests: npm test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpou%2Fmean-apispark-beer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxpou%2Fmean-apispark-beer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpou%2Fmean-apispark-beer/lists"}