• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-Nov-2021-

.github/H03-Nov-2021-7623

__mocks__/H03-May-2022-

app/H03-May-2022-4,7564,093

assets/H03-Nov-2021-12,96910,566

bin/H03-May-2022-308209

codemods/H03-Nov-2021-148

docker/H03-Nov-2021-3230

tasks/H03-May-2022-

test/H03-May-2022-218180

.babelrcH A D03-Nov-2021284 98

.envH A D03-Nov-2021242 64

.eslintignoreH A D03-Nov-2021170 129

.eslintrcH A D03-Nov-20212.2 KiB9586

.gitignoreH A D03-Nov-2021919 4947

.npmignoreH A D03-Nov-202149 76

.travis.ymlH A D03-Nov-2021818 3634

CONTRIBUTING.mdH A D03-Nov-20212.7 KiB6542

LICENSEH A D03-Nov-202110.9 KiB204169

code-layout.mdH A D03-Nov-20214.9 KiB8353

extensions.mdH A D03-Nov-2021469 169

i18n.json.default.jsonH A D03-Nov-20212.1 KiB2827

jest-config.jsonH A D03-Nov-2021484 1712

package-lock.jsonH A D03-Nov-2021630.4 KiB17,00817,007

package.jsonH A D03-Nov-20215.1 KiB153152

readme.mdH A D03-Nov-20213.2 KiB10362

settings.json.default.jsonH A D03-Nov-20212.5 KiB9087

styleguide.mdH A D03-Nov-20217.2 KiB262193

tests.mdH A D03-Nov-20212.4 KiB8148

readme.md

1[![Build Status](https://travis-ci.org/apache/couchdb-fauxton.svg?branch=main)](https://travis-ci.org/apache/couchdb-fauxton)
2
3# Fauxton
4
5
6Fauxton is the new Web UI for CouchDB. To get it running in development on your machine. Follow the steps below.
7
8## Install as standalone server via npm
9
10You can use the latest release of Fauxton via npm:
11
12    npm install -g fauxton
13    fauxton
14
15See `fauxton --help` for extra options.
16
17
18## Setting up Fauxton
19
20Please note that [node.js](http://nodejs.org/) and npm is required. Specifically, Fauxton requires at least Node 6 and npm 3.
21
221. Fork this repo (see [GitHub help](https://help.github.com/articles/fork-a-repo/) for details)
231. Clone your fork: `git clone https://github.com/YOUR-USERNAME/couchdb-fauxton.git`
241. Go to your cloned copy: `cd couchdb-fauxton`
251. Set up the upstream repo:
26    * `git remote add upstream https://github.com/apache/couchdb-fauxton.git`
27    * `git fetch upstream`
28    * `git branch --set-upstream-to=upstream/main main`
291. Download all dependencies: `npm install`
301. Make sure you have CouchDB installed.
31    - Option 1 (**recommended**): Use `npm run docker:up` to start a Docker container running CouchDB with user `tester` and password `testerpass`.
32      - You need to have [Docker](https://docs.docker.com/engine/installation/) installed to use this option.
33    - Option 2: Follow instructions
34[found here](http://couchdb.readthedocs.org/en/latest/install/index.html)
35
36
37## Running Fauxton
38
39**NOTE: Before you run Fauxton, don't forget to start CouchDB!**
40
41
42### The Dev Server
43
44Using the dev server is the easiest way to use Fauxton, especially when developing for it. In the cloned repo folder,
45type:
46
47```
48npm run dev
49```
50
51You should be able to access Fauxton at `http://localhost:8000`
52
53
54### Preparing a Fauxton Release
55
56Follow the "Setting up Fauxton" section above, then edit the `settings.json` variable root where the document will live,
57e.g. `/_utils/`. Then type:
58
59```
60npm run couchdb
61```
62This will install the latest version of Fauxton into `/share/www/`
63
64
65### To Deploy Fauxton
66
67To deploy to your local [CouchDB instance](http://localhost:5984/fauxton/_design/fauxton/index.html):
68
69    grunt couchapp_deploy
70
71### Build pipeline overview
72
73During a release build we are creating a folder called `dist/tmp-out`.
74It contains all files that are just intermediate results for the final
75release artifact. Once everything is finished the files are copied from
76`tmp-out` to their final destination, `dist/release` where they are
77part of the deployable release artifact.
78
79### (Optional) To avoid a npm global install
80    # Development mode, non minified files
81    npm run couchdebug
82
83    # Or fully compiled install
84    npm run couchdb
85
86
87
88## More information
89
90Check out the following pages for a lot more information about Fauxton:
91
92- [The Fauxton Code Layout](https://github.com/apache/couchdb-fauxton/blob/main/code-layout.md)
93- [Style Guide](https://github.com/apache/couchdb-fauxton/blob/main/styleguide.md)
94- [Testing Fauxton](https://github.com/apache/couchdb-fauxton/blob/main/tests.md)
95- [Extensions](https://github.com/apache/couchdb-fauxton/blob/main/extensions.md)
96- [How to contribute](https://github.com/apache/couchdb-fauxton/blob/main/CONTRIBUTING.md)
97
98
99------
100
101
102-- The Fauxton Team
103