All Projects → broerse → ember-cli-blog

broerse / ember-cli-blog

Licence: other
Tom Dale's blog example updated for the Ember CLI

Projects that are alternatives of or similar to ember-cli-blog

Kivik
Kivik provides a common interface to CouchDB or CouchDB-like databases for Go and GopherJS.
Stars: ✭ 200 (+129.89%)
Mutual labels:  couchdb, pouchdb
ember-template-inspector
An ember add-on which opens the template file in the code editor while inspecting an element.
Stars: ✭ 15 (-82.76%)
Mutual labels:  ember-cli, ember
Pouchdb
🐨 - PouchDB is a pocket-sized database.
Stars: ✭ 14,625 (+16710.34%)
Mutual labels:  couchdb, pouchdb
Vue Pouch Db
Vue Pouch DB is a VueJS Plugin that binds PouchDB with Vue and keeps a synchronised state with the database. Has support for Mango queries which are processed locally within the VuePouchDB state.
Stars: ✭ 127 (+45.98%)
Mutual labels:  couchdb, pouchdb
ember-cli-qunit
QUnit testing package for ember-cli applications
Stars: ✭ 29 (-66.67%)
Mutual labels:  ember-cli, ember
Avancedb
An in-memory database based on the CouchDB REST API and containing the CouchDB Futon and Fauxton web sites
Stars: ✭ 161 (+85.06%)
Mutual labels:  couchdb, pouchdb
kanban-board-app
Kanban style task management board app
Stars: ✭ 118 (+35.63%)
Mutual labels:  couchdb, pouchdb
Ionic-CouchDB-chat-app
Simple chat mobile app, like whatsApp lite version
Stars: ✭ 13 (-85.06%)
Mutual labels:  couchdb, pouchdb
ember-cli-nouislider
{{range-slider}} component for ember-cli powered by noUiSlider
Stars: ✭ 43 (-50.57%)
Mutual labels:  ember-cli, ember
offPIM
Decentralized, Offline-first, Personal Information Manager (PIM) using PouchDB/CouchDB. Includes task-, note-, and contact-management, as well as journaling.
Stars: ✭ 63 (-27.59%)
Mutual labels:  couchdb, pouchdb
drummer
Offline-first drum machine
Stars: ✭ 19 (-78.16%)
Mutual labels:  couchdb, pouchdb
ember-cli-geo
Geolocation service for Ember.js web apps
Stars: ✭ 48 (-44.83%)
Mutual labels:  ember-cli, ember
Couchdb Net
EF Core-like CouchDB experience for .NET!
Stars: ✭ 50 (-42.53%)
Mutual labels:  couchdb, pouchdb
Metadata.js
Library for building offline-first browser-based applications :: платформа автономных веб-приложений
Stars: ✭ 165 (+89.66%)
Mutual labels:  couchdb, pouchdb
Cht Core
The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
Stars: ✭ 354 (+306.9%)
Mutual labels:  couchdb, pouchdb
Rxdb
🔄 A client side, offline-first, reactive database for JavaScript Applications
Stars: ✭ 16,670 (+19060.92%)
Mutual labels:  couchdb, pouchdb
go-pouchdb
GopherJS bindings for PouchDB ⚠️ NOTICE ⚠️ this package has been superseded by https://github.com/go-kivik/kivik
Stars: ✭ 12 (-86.21%)
Mutual labels:  couchdb, pouchdb
react-pouchdb
React components for interacting with PouchDB.
Stars: ✭ 15 (-82.76%)
Mutual labels:  couchdb, pouchdb
repository
[PHP 7] Implementation and definition of a base Repository in Domain land.
Stars: ✭ 26 (-70.11%)
Mutual labels:  pagination, filter
ember-cli-string-helpers
Set of the String helpers extracted from DockYard's ember-composable-helpers.
Stars: ✭ 73 (-16.09%)
Mutual labels:  ember-cli, ember

Myapp

Known Vulnerabilities

This README outlines the details of collaborating on this Ember application.

Working example

https://bloggr.exmer.com/

Prerequisites

You will need the following things properly installed on your computer.

Installation

To get up and running with this project:

  • git clone this repository and cd into it cd ember-cli-blog
  • npm install to install npm dependencies
  • ember s to start the server!

Data will be stored in an in memory database and if configured, also replicated to a CouchDB instance.

Optional Installation

To setup CouchDB data replication, configure ENV.remote_couch inside ./config/environment.js to point to your CouchDB location.

To setup a CouchDB instance on your own machine:

  • install couchDB from http://couchdb.apache.org/
  • npm install -g add-cors-to-couchdb
  • add-cors-to-couchdb
  • update config/environment.js local_couch and remote_couch to your CouchDB instance name.
  • update config/environment.js ENV.rootURL in the production environment
  • To use deploy create a file .env.deploy.production in the root of this project containing something like db=https://username:[email protected]/bloggr

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build (development)
  • ember build --environment production (production)

Deploy

To deploy to your CouchDB cluster

  • ember deploy production (Set your credentials in the .env.deploy.production file)

Authentication

ember-simple-auth-pouch authenticator with custom data adapter to setup push replication after login. See /src/simple-auth/authenticators/pouch.js and /src/data/models/application/adapter.js for further details.

Authorization

CouchDB write protected database:

Registration required example for write permission: Add users in the normal CouchDB way. For example by adding the following document to the _users database:

{
  "_id": "org.couchdb.user:test",
  "name": "test",
  "password": "test",
  "roles": [
    "user"
  ],
  "type": "user"
}

After that you can protect your bloggr database from unauthorized writes by adding the following design document to the bloggr database.

{
  "_id": "_design/only_users_write",
  "validate_doc_update": "function (newDoc, oldDoc, userCtx) {\n\tif (userCtx.roles.indexOf(\"user\") == -1 && userCtx.roles.indexOf(\"_admin\") == -1) {\n\t\tthrow({unauthorized: \"Only registered users can save data!\"});\n\t}\n}"
}

For the free CloudStation you have to create an User and a Database and insert the userdocument from above. Make sure to update your config/environment.js remote_couch and rootURL to match your production settings. Typical rootURL values are / and /yourdb/_design/myapp/_rewrite/ If you run your own CouchDB you can use the Hoodie CouchDB User Management App to create users.

Secret route

There is one secret route setup to demonstrate how to use ember-simple-auth to protect routes. More instructions can be read there.

Further Reading / Useful Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].