stacherzakp / Stacktrack

Alternative for pastebin written in Java and Angular for internal use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stacktrack

Pastebin alternative for local usage.

Web application as an alternative for pastebin, allows to serve a text content via unique URL. Can be deployed in internal network as an internal tool.

Functionalities

  • creating content from text input or file (up to 5mb)
  • serving content via unique urls
  • searching by title/author
  • last 10 pastes
  • securing paste by password (optional)

Preview

Create paste

Search and activity

Preview

Deployment (in Tomcat)

  1. Build war file using mvn clean package -Dmaven.test.skip=true
  2. Create postgresql database
  3. Set JVM argument for tomcat application in setenv.sh
-Dstacktrack-database=path_to_properties_file
 
example: export CATALINA_OPTS="$CATALINA_OPTS -Dstacktrack-database=/usr/share/tomcat8/conf/stacktrack-database.properties
  1. Create properties file with your database credentials:
db.url=jdbc:postgresql://localhost:5432/stacktrack
db.username=postgres
db.password=admin
  1. Deploy war on tomcat
  2. Enjoy and paste your stacks

About

Alternative for pastebin written in Java and Angular for internal use.


Languages

Language:Java 55.3%Language:HTML 15.8%Language:JavaScript 12.8%Language:Shell 8.8%Language:Batchfile 6.8%Language:CSS 0.5%