Running fedocal instance

Fedocal

A web based calendar application for Fedora.  It is a single place where you can keep track of:

  • meetings
  • events
  • deadlines

 

Get the project

Fork the Fedocal project from Pagure.

Clone the project:

25

Then, go to the Fedocal directory:

Screenshot from 2016-04-18 19-14-45

 

Copy configuration files

12

 

There are 3 things to be done now:

1. Set Secret Key in configuration file

Install pwgen to generate 50 characters long random key:

21

Generate secret key:

22

Put the secret key in fedora.cfg file:

Screenshot from 2016-04-18 21-52-25

 

2. Adjust alembic configuration file:

go to /etc

17

make fedocal directory:

18

create alembic.ini file:

19

copy all data from alembic.ini in your cloned fedocal directory to this /etc/fedocal/alembic.ini

You can directly do this using “cp” command as well.

If you skip this step, then you might get this error while creating database scheme:

16

 

3.Set the database URL

In the alembic.ini file in your CLONED fedocal repo, you will find the line,

sqlalchemy.url = sqlite:////var/tmp/fedocal_dev.sqlite

In the fedocal.cfg file in you CLONED fedocal repo, you will find the line

DB_URL=sqlite:////full/path/to/database.sqlite

Copy the sqlalchemy.url of the alembic.ini file to DB_URL of fedocal.cfg file as given below:

23

If, you skip this step and do not set the database URL, you get this error:

20

 

Install dependencies

Before creating database scheme, I had to install the following dependecies:

3

Even after installing python-openid, I was getting this error:

8.png

Now, according to this article, pycurl fetcher takes precedence if pycurl is installed. So, i checked if pycurl was installed on my machine using the command:

7.png

I removed pycurl using the command:

5

After that, I installed the remaining dependencies:

9101112131415

 

Create database scheme

24

 

Run the server

Screenshot from 2016-04-18 21-37-29.png

 

Now, access the server at http://localhost:5000 in your browser

Screenshot from 2016-04-18 21-40-08.png

Advertisements
Running fedocal instance