FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
mysql -uswiftriver -p swiftriver < /opt/swiftriver/src/SwiftRiver-API/src/main/resources/config/sql/schema.sql

After the schema is created, run the queries below to add some required basic information to the database.

Code Block
languagesql
INSERT INTO `swiftriver`.`clients` 
VALUES 
	('1', '1', 'trusted-client', '8b22f281afd911c3dfc59270af43db1995d5968a3447c780ba3e152e603fd9a0', 'http://localhost:8080/oauth/redirect', 'my app', 'my app\'s description', 'my app\'s homepage', '1');

INSERT INTO `swiftriver`.`roles_clients` 
VALUES 
	(1,3),(1,4);

INSERT INTO `swiftriver`.`roles` (`id`,`name`,`description`)
VALUES
	(1, 'user', 'Login privileges, granted after account confirmation'),
	(2, 'admin', 'Super Administrator'),
	(3, 'client', 'Client application'),
	(4, 'trusted_client', 'Truested client application');
INSERT INTO `swiftriver`.`accounts`
VALUES
	('1', '1', 'default', '0', '2013-01-01 00:00:00', '2013-01-02 00:00:00', '1', '10', '1');

INSERT INTO `swiftriver`.`users` 
VALUES
	('1', 'myswiftriver@myswiftriver.com', 'Administrator', 'admin', '$2a$05$f0I9XjamKm4LEaF8av1Zy.tzBrzFM0smLMKvMAqUWicGAcEnkCdQe', '0', '1', '10', '2014-03-08 13:21:15', '2013-01-01 00:00:00', '0', '0');

 

Tomcat, Java and JDBC

If your application fails to start later on, it might be because it's not connecting to the MySQL database. To solve that, you'll need to make sure that the JDBC driver is installed on Tomcat.

...