Skip to content
Code snippet manager
Java JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitignore
ISnippetDAO.java
README.md
example_data.sql
pom.xml

README.md

Snippr


Before deploying this project you need to create an empty database. Default database is postgreSQL.

Create database

> CREATE USER snippr WITH PASSWORD 'snippr';
> CREATE DATABASE snipprdev;
> GRANT ALL PRIVILEGES ON DATABASE snipprdev TO snippr;

Create default user to login

> INSERT INTO users (id, user_name, password, enabled, account_non_expired, credentials_non_expired, account_non_locked) VALUES (1, 'test', 'test', TRUE, TRUE, TRUE, TRUE);
> INSERT INTO roles (id, role_name) VALUES (1, 'ROLE_USER');
> INSERT INTO users_roles (user_id, role_id) VALUES (1, 1);

Compile & deploy

$ mvn clean install
$ mvn jetty:stop jetty:run

Open website at localhost:8080

Something went wrong with that request. Please try again.