Skip to content
/ uwazi Public

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

License

Notifications You must be signed in to change notification settings

huridocs/uwazi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devDependency Status dependency Status CircleCI

#Global dependencies

#Development

  • Dependencies

    install yarn and execute:

    $ yarn install.

    Several globally accessible gems and npm modules are required:

    $ sudo npm install -g webpack
    $ sudo npm install -g nodemon
    $ sudo npm install -g karma-cli
    
  • Fixtures

    $ ./database/blank_state.sh
    
  • launch application:

    • npm run start, for hot reloading build dev app and nodemon server
    • webpack --watch and npm run server, for development build with nodemon server
    • webpack --config webpack.production.config.js;export NODE_ENV=production;node server.js, for production env bundle
  • test server: node test_api.js

  • test client: karma start

#Suggestions

  • IDE

    -Ubuntu

    • SublimeText 3:

      In order to install the ES6 linter, you need to add to the package control the packages:

      • SublimeLinter
      • SublimeLinter-eslint In theory, it will use the eslint from the local node_modules, and the configuration from the .eslintrc In order to do JSX fromatting:
      • Babel Then open a .js file and go to: view -> syntax -> open all current extensions as ... -> Babel -> Javascript (Babel)
  • If autowatch does not work, check the max_user_watches with:

    $ sysctl fs.inotify.max_user_watches
    

    If the number is relatively low (bellow 200K) try increasing the watchers by default with:

    $ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
    
  • If the nice 'World Globe' on the 'server listening on port...' line is not showing properly:

    $ sudo apt-get install ttf-ancient-fonts
    

=)