GithubHelp home page GithubHelp logo

mareknerko / uwazi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huridocs/uwazi

0.0 0.0 0.0 95.68 MB

Uwazi is a web-based, open-source solution for building and sharing document collections

Home Page: http://www.uwazi.io

License: MIT License

JavaScript 94.09% CSS 5.69% Shell 0.06% HTML 0.16%

uwazi's Introduction

Uwazi Logo

devDependency Status dependency Status CircleCI Maintainability Test Coverage

There are important stories within your documents. Uwazi helps you tell them. Uwazi is a free, open-source solution for organizing, analyzing and publishing your documents.

Uwazi | HURIDOCS

Read the user guide

Intallation guide

Dependencies

Before anything else you will need to install the application dependencies.

If you want to use the latest development code:

$ git clone https://github.com/huridocs/uwazi.git
$ cd uwazi
$ yarn install

If you just want to only use the latest stable release (recommended for production):

$ git clone -b master --single-branch https://github.com/huridocs/uwazi.git
$ cd uwazi
$ yarn install

There may be an issue with pngquant not running correctly. If you encounter this issue, you are probably missing library libpng-dev. Please run:

$ sudo rm -rf node_modules
$ sudo apt-get install libpng-dev
$ yarn install

Production

Production Build

$ yarn production-build

The first time you run Uwazi, you will need to initialize the database with its default blank values. Do no run this command for existing projects, as this will erase the entire database. Note that from this point you need ElasticSearch and MongoDB running.

$ yarn blank-state

Then start the server by typing:

$ yarn run-production

By default, Uwazi runs on localhost on the port 3000. So point your browser to http://localhost:3000 and authenticate yourself with the default username "admin" and password "change this password now".

Check out the user guide for more configuration options.

Upgrading Uwazi and data migrations

Updating Uwazi is pretty straight forward using git:

$ cd uwazi
$ git pull
$ yarn install
$ yarn migrate
$ yarn production-build
$ yarn run-production
  • If you are not using git, just download and overwrite the code in the Uwazi directory.
  • 'yarn install' will automatically add, remove or replace any changes in module dependecies.
  • 'yarn migrate' will track your last data version and, if needed, run a script over your data to modify it so that is up to date with your Uwazi version.

Environment Variables

Uwazi supports the following environment variables to customize its deployment:

  • DBHOST: MongoDB hostname (default: localhost)
  • DATABASE_NAME: MongoDB instance name
  • ELASTICSEARCH_URL: ElasticSearch connection URL (default: http://localhost:9200)
  • UPLOADS_FOLDER: Folder on local filesystem where uploaded PDF and other files are written to (TODO temporarily or permanently?)

Development

Development Run

$ yarn hot

This will launch a webpack server and nodemon app server for hot reloading any changes you make.

Testing

Unit and Integration tests

We test using the JEST framework (built on top of Jasmine). To run the unit and integration tests, execute

$ yarn test

This will run the entire test suite, both on server and client apps.

End to End (e2e)

For End-to-End testing, we have a full set of fixtures that test the overall functionality. Be advised that, for the time being, these tests are run ON THE SAME DATABASE as the default database (uwazi_developmet), so running these tests will DELETE any exisisting data and replace it with the testing fixtures. DO NOT RUN ON PRODUCTION ENVIRONMENTS!

Running end to end tests require a running Uwazi app.

$ yarn hot

On a different console tab, run

$ yarn e2e

Note that if you already have an instance running, this will likely throw an error of ports already been used. Only one instance of Uwazi may be run in a the same port at the same time.

E2E Tests depend on electron. If something appears to not be working, please run node_modules/electron/dist/electron --help to check for problems.

Default login

The application's default log in is admin / change this password now

Note the subtle nudge ;)

uwazi's People

Contributors

daneryl avatar konzz avatar rafapolit avatar danicatalan avatar habbes avatar txau avatar elric-wamugu avatar nestorsalceda avatar gabriel-piles avatar snyk-bot avatar whyfrycek avatar julkue avatar vorburger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.