Skip to content
Permalink
Browse files

Merge pull request #407 from openpetra/dev

New development environment with getopenpetra.com, and preparations for Recurring Gifts
  • Loading branch information
tpokorra committed Nov 24, 2019
2 parents e2120b4 + 37bb8a9 commit eefb597588d0e068bc2c4d54f98fc0111d2ddd36
Showing with 464 additions and 827 deletions.
  1. +9 −1 OpenPetra.build
  2. +25 −27 README.md
  3. +1 −1 csharp/ICT/Petra/Server/app/WebService/SessionManager.cs
  4. +290 −2 csharp/ICT/Petra/Server/lib/MFinance/Gift/Gift.Transactions.cs
  5. +14 −11 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/DBUpgrades.cs
  6. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201806_201808.cs
  7. +0 −64 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201808_201809.cs
  8. +0 −4 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201808_201809.sql
  9. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201809_201810.cs
  10. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201810_201811.cs
  11. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201811_201812.cs
  12. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201812_201901.cs
  13. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201901_201902.cs
  14. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201902_201904.cs
  15. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201904_201905.cs
  16. +0 −64 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201905_201906.cs
  17. +0 −21 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201905_201906.sql
  18. +0 −64 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201906_201907.cs
  19. +0 −14 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201906_201907.sql
  20. +0 −44 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201907_201908.cs
  21. +3 −4 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201908_201909.cs
  22. +5 −4 csharp/ICT/Petra/Server/lib/MSysMan/DBUpgrades/Upgrade201909_201910.cs
  23. +2 −0 inc/nant/OpenPetra.common.xml
  24. +11 −25 setup/petra0300/linuxserver/PetraServerConsole.config
  25. +9 −0 setup/petra0300/linuxserver/mysql/OpenPetra.build.config
  26. +26 −13 setup/petra0300/linuxserver/mysql/centos/openpetra-server.sh
  27. +0 −1 setup/petra0300/linuxserver/mysql/debian/openpetra-server.service
  28. +3 −3 setup/petra0300/linuxserver/mysql/{centos/openpetra-server.service → openpetra.service}
  29. +9 −0 setup/petra0300/linuxserver/postgresql/OpenPetra.build.config
  30. +0 −13 setup/petra0300/linuxserver/postgresql/centos/openpetra-server.service
  31. +13 −0 setup/petra0300/linuxserver/postgresql/openpetra.service
  32. +0 −74 setup/petra0300/linuxserver/postgresql/web.config
  33. +7 −0 setup/petra0300/linuxserver/sqlite/OpenPetra.build.config
  34. +11 −0 setup/petra0300/linuxserver/sqlite/openpetra.service
  35. +26 −21 setup/setup.build
@@ -430,7 +430,15 @@ useful parameters
<echo message="Target test-client (outer) started at: ${datetime::now()}" />

<loadtasks assembly="${Ict.Tools.NAntTasks.DLL}" unless="${task::exists('GenerateNamespaceMap')}"/>
<nant inheritall="false" target="test-client" buildfile="${path::combine(dir.csharp, 'ICT/Testing/ICT.Testing.build')}" verbose="${verbose}"/>

<!-- to avoid timeout, need to make sure everything gets compiled on the web request -->
<exec program="bash"
workingdir="${dir.root}/js-client"
commandline="-c &quot;curl --silent --retry 5 http://localhost:${Http.Port}/api/serverSessionManager.asmx/IsUserLoggedIn&quot;" />

<exec program="bash"
workingdir="${dir.root}/js-client"
commandline="-c &quot;LANG=en CYPRESS_baseUrl=http://localhost:${Http.Port} ./node_modules/.bin/cypress run --config video=false&quot;" />

<echo message="Target test-client (outer) finished at: ${datetime::now()}" />
</target>
@@ -5,46 +5,44 @@ INTRODUCTION
------------
The goal of OpenPetra is to provide an easy to use software system for the administration of non-profit organisations.

You can manage your contacts (CRM) and your accounts (ERP) with OpenPetra. We have a special focus on processing and receipting donations. More features are being implemented as the demand for OpenPetra grows.

To find out more about OpenPetra, please visit the webpage [www.openpetra.org](http://www.openpetra.org)

DEVELOPMENT SETUP
-----------------
DEMO
----

These are the steps required to setup a development environment on CentOS7:
You are welcome to try the demo at https://demo.openpetra.org. This is a public service, so don't enter any real data!

```
# install required packages
yum install epel-release git
yum install mono-devel nant nunit xsp libsodium
OPENPETRA AS A SERVICE
----------------------

# clone the code repositories
git clone --depth 10 https://github.com/openpetra/openpetra.git
git clone https://github.com/openpetra/openpetra-client-js.git
Please have a look at https://www.openpetra.com for your own free test installation of OpenPetra, with unlimited testing period!

cd openpetra
COMMUNITY
---------

There is an english forum at https://forum.openpetra.org, and for german speakers we have https://forum.openpetra.de

# setup the basic configuration
vi OpenPetra.build.config
DEVELOPMENT SETUP
-----------------

<?xml version="1.0"?>
<project name="OpenPetra-userconfig">
<property name="DBMS.Type" value="sqlite"/>
<property name="Server.DebugLevel" value="0"/>
</project>
These are the steps required to setup a development environment on CentOS7:

# this will take a couple of minutes while code is generated and the solution gets compiled
nant generateSolution
```
curl https://getopenpetra.com | bash -s devenv
```

# create a fresh sqlite database
nant recreateDatabase resetDatabase
For development, do this to get a list of available commands:

# run the server with xsp4
nant start
# stop the server
nant stop
```
su - op_dev
cd openpetra
nant help
```

You can test your OpenPetra installation at http://localhost:9000 and http://localhost:9000/api
You can test your OpenPetra installation at http://localhost and http://localhost/api/.
The default user is DEMO and password DEMO, or user SYSADMIN and password CHANGEME.

LICENSE
-------
@@ -90,7 +90,7 @@ private static bool Init()

// make sure the correct config file is used
string Instance = HttpContext.Current.Request.Url.ToString().Replace("http://", "").Replace("https://", "");
Instance = Instance.Substring(0, Instance.IndexOf(".")).Replace("op", "op_");
Instance = Instance.Substring(0, Instance.IndexOf(".")).Replace("op_","op").Replace("op", "op_");

// for demo etc
if (!Instance.StartsWith("op_"))

0 comments on commit eefb597

Please sign in to comment.
You can’t perform that action at this time.