Skip to content

OpenSourceInternetV2/community-platform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,583 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DuckDuckGo - Community Platform

New documentation in work! Please only try if you know what you do

REQUIREMENTS

Requires perl 5.14.2< and:

apt-get install build-essential libgd2-xpm-dev libssl-dev git wget libxml2-dev imagemagick

INSTALLATION

After checking out, you require to install the requirements. You must have installed Dist::Zilla, then you can do the following to install the base Perl requirements:

dzil authordeps --missing | cpanm
dzil listdeps --missing | cpanm

Additionally, you require to install DDGC deps from duckpan:

duckpan DDGC::Static

When you checked out the repository you must once run this command to get a base database installed in your home:

script/ddgc_deploy_dev.pl

You might need to use the --kill switch if you already have one, or want to reset it:

script/ddgc_deploy_dev.pl --kill

For the flags to work you need to generate the sprites used for the flags. This process has to be repeated everytime the country flags are changing.

script/ddgc_generate_flag_sprites.pl

DEVELOPING

You can start the web server, if you are inside the repository with:

script/ddgc_web_server.pl -r -d

If you want to do any of the above activities with intense debug logging you can use the following ENV variables before the command, like in this example:

DBIC_TRACE_PROFILE=console DBIC_TRACE=1 script/ddgc_web_server.pl -r -d

The -r switch assures that it reloads itself, if some of the codefiles are changed. For changes on templates he will not restart. (If you work on the blog you sadly have to restart by hand if you change the data file).

The -d switch sets the web server into debugging mode. This activates a side bar with additional request informations, and also shows you much more informations on the terminal. If you don't want those, you can just deactivate it. For work on HTML/CSS or the blog it might disturb.

ACCOUNTS

We prepared some accounts for testing in the default setup, those can all be accessed with random passwords (yes, you can't test wrong password yet, sorry).

The following account exist:

* testone An admin, who is native german, but also speaks english.

* testtwo A normal user who speaks spanish, with public profile.

* testthree A translation_manager who speaks english, arabic and german.

* testfour An admin, who speaks german, spain and english.

* testfive A normal user without public profile, who speaks russian and english.

* Additionally there exist test1 till test100 all without any setup.

About

DuckDuckGo Community Platform

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Perl 54.9%
  • JavaScript 26.4%
  • CSS 18.2%
  • Other 0.5%