```docker run -p 80:5000 dengyiping/open-event-orga-server```
10K+
This server which will manage all the data of the event. Backed by a database, it provides API endpoints to fetch the data, and also to modify/update it.
The database can be a sqlite db file or saved in json itself.
The schema for the database is provided here
The data is provided over the API endpoints as described here
Please join our mailing list to discuss questions regarding the project: https://groups.google.com/forum/#!forum/open-event
sudo apt-get install linux-image-extra-`uname -r`
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install docker-engine
docker run -p 80:5000 dengyiping/open-event-orga-server5.0.x for VirtualBox.rubygems or HomeBrew it will not work with version 5.0.x of VirtualBox. You need to uninstall any previous version and use the installation file provided on the Vagrant website. The current version at the time of writing is 1.7.X, just make sure that Vagrant and VirtualBox are compatible with each other.git clone [email protected]:fossasia/open-event-orga-server.git
cd open-event-orga-server
vagrant up
If the above command gives you error saying valid providers not found .... Use this command instead
vagrant up --provider=virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH
......
==> default: Preparing to unpack .../libjpeg8_8c-2ubuntu8_amd64.deb ...
==> default: Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...
==> default: Selecting previously unselected package libjbig0:amd64.
==> default: Preparing to unpack .../libjbig0_2.0-2ubuntu4.1_amd64.deb ...
==> default: Unpacking libjbig0:amd64 (2.0-2ubuntu4.1) ...
==> default: Selecting previously unselected package libtiff5:amd64.
==> default: Preparing to unpack .../libtiff5_4.0.3-7ubuntu0.3_amd64.deb ...
......
Just wait patiently, it will take about 10-15 minutes depending on your computer and the Internet connection. Go sip a coffee in the meantime.
ssh in order to examine its contents.vagrant ssh
cd /vagrant
Now you are inside a synced up copy of the project directory. if you do ls, the files within the folder are the same as in your current folder.
python create_db.py
It should exit normally without raising any errors, if you have any errors, then double check your Database configuration, do echo $DATABASE_URL at the command prompt and you should see a string with the Postgres DB url.
echo $DATABASE_URL
# Gives something like this below
postgresql://$APP_DB_USER:$APP_DB_PASS@localhost:5432/$APP_DB_NAME
If you don't see anything as output, then there is a bug in the provision scripts.
$DATABASE_URL manuallyexport DATABASE_URL=postgresql://open_event_user:start@localhost:5432/test
and then try running python create_db.py again
python manage.py runserver -h 0.0.0.0 -p 5000
Vagrantfile we have exposed port 5000 from the guest machine to 8001 so all API calls and HTTP requests must be made via 8001 from the host machineWhen writing changes to models. Use migrations.
# To generate a migration after doing a model update
python manage.py db migrate
# To sync Database
python manage.py db upgrade
# To rollback
python manage.py db downgrade
When checking in code for models, please update migrations as well.
This project is currently licensed under the GNU General Public License v3. A copy of LICENSE.md should be present along with the source code. To obtain the software under a different license, please contact FOSSASIA.
Content type
Image
Digest
Size
303.7 MB
Last updated
almost 10 years ago
docker pull dengyiping/open-event-orga-server