Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Strider | 4,528 | 4 | 5 | 2 years ago | 93 | August 21, 2020 | 177 | mit | JavaScript | |
Open Source Continuous Integration & Deployment Server | ||||||||||
Travis Web | 606 | 11 days ago | 80 | mit | JavaScript | |||||
The Ember web client for Travis CI | ||||||||||
Ember Cli Blog | 88 | 3 years ago | n,ull | JavaScript | ||||||
Tom Dale's blog example updated for the Ember CLI | ||||||||||
Dashboard.aptible.com | 82 | 7 years ago | 58 | mit | JavaScript | |||||
DEPRECATED - Ember.js dashboard for the Aptible PaaS | ||||||||||
Ember Cli Deploy Original | 78 | 9 years ago | 24 | JavaScript | ||||||
An Ember-CLI addon for lightening fast deployment of applications | ||||||||||
Heroku Buildpack Emberjs | 73 | a year ago | 2 | Ruby | ||||||
**This buildpack is deprecated!** Please use the official Node.js buildpack combined with the static or nginx buildpack instead. | ||||||||||
Ember Cli Deploy S3 | 51 | 174 | 36 | 2 months ago | 19 | January 19, 2022 | 2 | mit | JavaScript | |
An ember-cli-deploy plugin to upload to s3 | ||||||||||
Ember Cli Deploy Sentry | 42 | 13 | 4 | a year ago | 15 | April 29, 2019 | 18 | mit | JavaScript | |
An ember-cli-deploy-plugin to upload javascript sourcemaps to Sentry | ||||||||||
Ember Cli Surge | 41 | 60 | 21 | 3 years ago | 58 | June 23, 2020 | 2 | mit | JavaScript | |
An ember addon for surge deployments | ||||||||||
Ember Cli Deploy Lightning Pack | 39 | 50 | 2 | 4 months ago | 43 | October 22, 2021 | 1 | mit | JavaScript | |
An ember-cli-deploy plugin pack to implement a "lightning" deployment pattern |
This README outlines the details of collaborating on this Ember application.
You will need the following things properly installed on your computer.
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 dependenciesember s
to start the server!Data will be stored in an in memory database and if configured, also replicated to a CouchDB instance.
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:
npm install -g add-cors-to-couchdb
add-cors-to-couchdb
config/environment.js
local_couch
and remote_couch
to your CouchDB
instance name.config/environment.js
ENV.rootURL
in the production environment.env.deploy.production
in the root of this project containing something like db=https://username:[email protected]/bloggr
ember s
ember test
ember test --server
ember build
(development)ember build --environment production
(production)To deploy to your CouchDB cluster
ember deploy production
(Set your credentials in the .env.deploy.production
file)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.
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.
There is one secret
route setup to demonstrate how to use ember-simple-auth to protect routes. More instructions can be read there.