Note service for keeping yours notes in the cloud. This repository contains two application.
Purpose of this application - provide REST service with security using as storage DataBase(MySql).
- JavaEE 7
- Spring Framework
- Persistence API
- MySql
- Junit
- Log4j
- H2 in memory database
WebUI support.
- Angular.JS
- BootStrap
- jQuery
- DataBase, your choice is not critical, tested on MySql.
- Application server, tested on Tomcat and GlassFish.
- Create schema, tables and keys in your DataBase.
CREATE SCHEMA notekeeper;
CREATE TABLE note
(
head CHAR(255),
body LONGTEXT,
creationDate DATETIME,
lastChangeDate DATETIME,
noteId BIGINT UNIQUE PRIMARY KEY NOT NULL,
userId BIGINT NOT NULL
);
CREATE TABLE user
(
userId BIGINT PRIMARY KEY NOT NULL,
email CHAR(40) UNIQUE NOT NULL,
login CHAR(40) UNIQUE NOT NULL,
password CHAR(40) NOT NULL
);
ALTER TABLE note ADD CONSTRAINT note_ibfk_1 FOREIGN KEY (userId)
REFERENCES user (userId)
ON DELETE CASCADE;
CREATE INDEX R_3 ON note (userId);
git clone https://github.com/BioQwer/NoteKeeper.git
- Install Bower dependencies for WebApplication.
cd webUI/src/main/webapp/
bower i
- Edit configs for DataBase
app.properties
, if you use not MySql you need to add Maven dependency for your JDBC.
cd serverSide/src/main/resources/app.properties
- Compile project.
mvn clean package
- Deploy to Application server.
- Enjoy.