Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 12 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,6 @@ Visit the docs for everything around Pastefy here: https://docs.pastefy.app

See [Self-Hosting](https://docs.pastefy.app/self-hosting/index.html) for more options.

### Container-Less
```bash
git clone https://github.com/interaapps/pastefy.git
cd pastefy/frontend
npm run install
npm run build
cd ../backend
mvn clean package
cd ..
cp .env.example .env
nano .env
java -jar backend/target/backend.jar
```
Using intelliJ? Look at [Develop](#Develop)

## Configuration
See [Configuration](https://docs.pastefy.app/self-hosting/configuration.html) for all options.
### Adding login
Expand All @@ -106,21 +91,28 @@ OAUTH2_CUSTOM_USERINFO_ENDPOINT=https://accounts.interaapps.de/api/v2/oidc/useri

## Develop

#### Build frontend into the backend
#### Backend Development
Open IntelliJ, go into Main.kt and click on the green play button.

Having docker installed, all dependencies will be automatically started. (MySQL, Redis, MinIO, Elastic, Clickhouse)

The backend will start on port 8080.

#### Bundle frontend into the backend
```bash
# You might want to build the frontend
cd frontend
npm build prod
npm build
```

#### Frontend
Run the backend (On port 1337) and then go to the frontend and run
Run the backend (On port 8080) and then go to the frontend and run
```bash
cd frontend
npm run serve
VITE_APP_BASE_URL=http://localhost:8080 npm run dev
```

We are using IntelliJ Idea and Visual Studio code.
We are using IntelliJ Idea and WebStorm.

### API
You can find the docs of the Pastefy-Rest-APi here: [Docs](https://docs.pastefy.app/api/)
Expand Down
48 changes: 48 additions & 0 deletions backend-kt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

src/main/resources/static
src/main/resources/application-prod.properties

### Kotlin ###
.kotlin

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
3 changes: 3 additions & 0 deletions backend-kt/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions backend-kt/.idea/dataSources.local.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions backend-kt/.idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading