commit | 900c8ea3e0e61be5cef8a2ec47a4c9465a3c2691 | [log] [tgz] |
---|---|---|
author | Antonio Maranhao <30349380+Antonio-Maranhao@users.noreply.github.com> | Thu Jan 04 04:21:22 2018 -0500 |
committer | garren smith <garren.smith@gmail.com> | Thu Jan 04 11:21:22 2018 +0200 |
tree | 9d1a90d9bed128122cbc0d01450260b0163c2b9a | |
parent | 93f4842128d50987b9ad0d6d531e4e1cb8894f94 [diff] |
Upgrade to eslint v4 and enable recommended lint rules (#1043) * Upgrade eslint to v4 with recommended config * Fix lint issues * Enable eslint-react recommended rules * Address Garren's comments * Enforce 2-space indent rule and fix all issues * Enforce no-else-return rule and fix issues * More lint fixes after rebasing * Reverting because syntax is not valid in Node * Ignore initialize.js for linting
Fauxton is the new Web UI for CouchDB. To get it running in development on your machine. Follow the steps below.
You can use the latest release of Fauxton via npm:
npm install -g fauxton fauxton
See fauxton --help
for extra options.
Please note that node.js and npm is required. Specifically, Fauxton requires at least Node 6 and npm 3.
git clone https://github.com/YOUR-USERNAME/couchdb-fauxton.git
cd couchdb-fauxton
git remote add upstream git@github.com:apache/couchdb-fauxton.git
git fetch upstream
git branch --set-upstream-to=upstream/master master
npm install
npm run docker:up
to start a Docker container running CouchDB with user tester
and password testerpass
.NOTE: Before you run Fauxton, don't forget to start CouchDB!
Using the dev server is the easiest way to use Fauxton, especially when developing for it. In the cloned repo folder, type:
npm run dev
You should be able to access Fauxton at http://localhost:8000
Follow the “Setting up Fauxton” section above, then edit the settings.json
variable root where the document will live, e.g. /_utils/
. Then type:
npm run couchdb
This will install the latest version of Fauxton into /share/www/
To deploy to your local CouchDB instance:
grunt couchapp_deploy
During a release build we are creating a folder called dist/tmp-out
. It contains all files that are just intermediate results for the final release artifact. Once everything is finished the files are copied from tmp-out
to their final destination, dist/release
where they are part of the deployable release artifact.
# Development mode, non minified files npm run couchdebug # Or fully compiled install npm run couchdb
Check out the following pages for a lot more information about Fauxton:
-- The Fauxton Team