GithubHelp home page GithubHelp logo

buxx / tracim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tracim/tracim

0.0 2.0 0.0 25.06 MB

Threads, files and pages with status and full history. All in the same place.

Home Page: http://tracim.org

License: MIT License

Python 73.42% Shell 1.20% Mako 0.01% CSS 2.45% JavaScript 22.71% Makefile 0.10% Dockerfile 0.11%

tracim's Introduction

develop branch status: Build Status Coverage Status Scrutinizer Code Quality

What is tracim?

Tracim is a collaborative plateforme software intended for (not only technical) team collaboration. It is simple to use, offers a user-friendly interface and runs on every computer. It is very valuable for R&D teams, assocations, remote collaboration.

More information on the website: https://www.tracim.fr (in French)

Quickstart (using docker)

Test tracim on your computer with docker:

TRACIM_STORAGE=~/tracim
mkdir -p $TRACIM_STORAGE/etc
mkdir -p $TRACIM_STORAGE/var
docker run -e DATABASE_TYPE=sqlite -p 8080:80 -v $TRACIM_STORAGE/etc/:/etc/tracim -v $TRACIM_STORAGE/var:/var/tracim algoo/tracim

Then visit the url http://localhost:8080 and login in to tracim:

For advanced docker-based usage, look at the full tracim docker documentation,

Licence

Tracim is distributed under the terms of the MIT License.

Contribute

In order to contribute to tracim source_code, please read CONTRIBUTING.md file

Advanced - Install tracim from the sources

Get the source

Get the sources from GitHub (you need git):

git clone https://github.com/tracim/tracim.git
cd tracim/

Install backend

Option 1: Install backend manually

see Backend README

Option2: Install backend: Automated script for easy setup

This script run backend with simple default conf: development.ini conf file, use default config file, sqlite database, etc...

./setup_default_backend.sh

This script use command with sudo, make sure you have installed and configured sudo. You can run also with root if you add root in parameter of this script.

For each conf file missing, this script will generated them from default conf. If sqlite default database is missing, script will generate it. This script is also able to serve for update. If you want to update a script generated tracim install, you can just update source code with git pull and rerun the same script to update database model, system deps and python deps.

for more information about configuring tracim_backend, see Backend README for more information about configuration file, see development.ini.sample documentation and Backend setting file doc.

Install frontend: Automated Script for easy setup

./install_frontend_dependencies.sh
./build_full_frontend.sh

This script use command with sudo, make sure you have installed and configured sudo. You can run also with root if you add root in parameter of this script.

You can add "-d" to build_full_frontend.sh to disabled obfuscation and reduce build time.

Run tracim (using pserve)

cd backend/
source env/bin/activate
pserve development.ini

You can now enter the application at http://127.0.0.1:6543 and login with admin user:

Running tests with Cypress

Installation of Cypress: Automated script for easy setup

This script check if nodejs is installed (npm is necessary to install Cypress), if file package.json and cypress.json exist in 'functionnal_tests' folder. if not the script install necessary file and install Cypress and his dependency's.

./setup_functionnal_tests.sh

This script use command with sudo, make sure you have installed and configured sudo. You can run also with root if you add root in parameter of this script.

If you need to run cypress with external server of tracim, modify "baseurl" in cypress.json (look here for more detail: https://docs.cypress.io/guides/references/configuration.html#Options ).

Prerequisit for running Cypress tests

โš  To launch cypress test, you need a running tracim with specific config

cd backend/
source env/bin/activate
pserve cypress_test.ini

If you are running tests in a development environment

You must change the apiUrl property in frontend/configEnv.json to

http://localhost:1337/api/v2

Then rebuild the frontend

cd frontend/
npm run build 

Run tests with command line

This command run all test present in 'functionnal_tests/cypress/integration' folder.

cd functionnal_tests/
npm run cypress-run

Run tests with cypressgui

Open Cypress with graphical interface. You can show test running directly in web interface.

cd functionnal_tests/
npm run cypress-open

tracim's People

Contributors

basilelegal avatar buxx avatar feth avatar gehasia avatar inkhey avatar lebouquetin avatar lucbarry avatar nioub avatar nonolost avatar philippeaccorsi avatar sferot avatar skylsmoi avatar tr4ck3ur avatar uggla avatar

Watchers

 avatar  avatar

tracim's Issues

Install process

With Ubuntu 14.04 and python3**.4**:

At step:

virtualenv -p /usr/bin/python3 tg2env
source tg2env/bin/activate
cd tracim && python setup.py develop && cd -
pip install -r install/requirements.txt
./bin/tg2env-patch 1 tg2env/lib/python3.2/site-packages
pip install -r install/requirements.txt
./bin/tg2env-patch 2 tg2env/lib/python3.2/site-packages

Execution of

virtualenv -p /usr/bin/python3 tg2env
source tg2env/bin/activate
cd tracim && python setup.py develop && cd -

was ok.

On first pip install -r install/requirements.txt:

[...]
  File "/home/bsevajol/projects/tracim/tg2env/build/wsgiref/ez_setup/__init__.py", line 170

    print "Setuptools version",version,"or greater has been installed."

                             ^

SyntaxError: invalid syntax

Then, ./bin/tg2env-patch 1 tg2env/lib/python3.4/site-packages:

[...]
RefactoringTool: Can't open tg2env/lib/python3.4/site-packages/babel: [Errno 2] No such file or directory: 'tg2env/lib/python3.4/site-packages/babel'
-> done
Patching code in file tg2env/lib/python3.4/site-packages/babel/messages/pofile.py...
(Patch is indented 4 spaces.)
patching file tg2env/lib/python3.4/site-packages/babel/messages/pofile.py
Hunk #1 FAILED at 384.
patch: **** Can't reopen file tg2env/lib/python3.4/site-packages/babel/messages/pofile.py : No such file or directory
-> done

Then, second pip install -r install/requirements.txt produce:

[...]
    import ez_setup

  File "/home/bsevajol/projects/tracim/tg2env/build/wsgiref/ez_setup/__init__.py", line 170

    print "Setuptools version",version,"or greater has been installed."

                             ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...

Then ./bin/tg2env-patch 2 tg2env/lib/python3.4/site-packages:

PATCHING PYTHON CODE
--------------------
site packages path:    tg2env/lib/python3.4/site-packages

Patching code in file tg2env/lib/python3.4/site-packages/resetpassword/lib/__init__.py...
sed: impossible de lire tg2env/lib/python3.4/site-packages/resetpassword/lib/__init__.py: Aucun fichier ou dossier de ce type
-> done

Database configuration done, access test ok.

When execute gearbox setup-app:

zsh: command not found: gearbox

So, gearbox installed with pip install gearbox

Successfully installed PasteDeploy-1.5.2 PrettyTable-0.7.2 PyYAML-3.11 Tempita-0.5.2 argparse-1.4.0 cliff-1.15.0 cmd2-0.6.8 gearbox-0.0.9 pbr-1.8.1 pyparsing-2.0.5 six-1.10.0 stevedore-1.9.0 unicodecsv-0.14.1

Then, gearbox setup-app produce:

Failed to load project commands with error "tg.devtools", have you installed your project?
13:49:51,137 ERROR [gearbox] No module named 'tgext'

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.