Skip to content

Commit 3b1c5f2

Browse files
authored
Merge pull request #41 from devondragon:issue-28-Write-a-good-How-to-use-this-to-build-your-app-guide
Write a good "How to use this to build your app" guide
2 parents f7d62e9 + 663fae5 commit 3b1c5f2

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

QUICKSTART.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Quickstart Guide
2+
3+
## Prerequisites
4+
- Java Development Kit (JDK) 17 or later
5+
6+
## Quick Note
7+
8+
This Framework is intended to be copied and used as a template for new projects. It is not intended to be used as a dependency.
9+
10+
While it would be nice to vend this as a library through Maven or Gradle, I don't belive it's possible to do so. In order for this framework to be useful (for my needs) it needs to provide the front end pages, JS, and set Spring configurations.
11+
12+
If anyone knows a way to do this as a dependancy, please let me knowm, or submit a PR.
13+
14+
15+
## Getting Started
16+
17+
1. Download this project as a zip file and extract it to a new folder.
18+
2. Open the project in your favorite IDE. I use VSCode.
19+
3. Copy the `src/main/resources/application-local.yml-example` file to `src/main/resources/application-local.yml`
20+
4. Edit the `src/main/resources/application-local.yml` file to set your configurations for things like SMTP server, Facebook or Google OAuth information, etc. If you need to override any defaults from `application.yml` you can do so here.
21+
5. Create the local database: `docker run -p 127.0.0.1:3306:3306 --name springuserframework -e MARIADB_ROOT_PASSWORD=springuserroot -e MARIADB_DATABASE=springuser -e MARIADB_USER=springuser -e MARIADB_PASSWORD=springuser -d mariadb:latest`
22+
6. If you are using a public hostname for OAuth (Google or Facebook), you will need to setup an [ngrok tunnel](https://medium.com/@Demipo/exposing-a-local-spring-boot-app-with-ngrok-819250ef75f) or [CloudFlare tunnel](https://vitobotta.com/2022/02/27/free-ngrok-alternative-with-cloudflare-tunnels/)
23+
7. Run the project. You can do this from the command line with `./gradlew bootRun`
24+
8. Open a browser and go to `http://localhost:8080` to see the home page.
25+
9. If things are working, you can now develop your own application on top of this framework
26+
27+
28+
## Bugs, Gaps, Questions
29+
If you find any issues, gaps in documentation or features, or have any questions, please open an issue on GitHub!
30+
31+
32+
33+
Back to [README.md](README.md)

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ The framework provides support for the following features:
3030

3131
## How To Get Started
3232

33+
### Quickstart Guide
34+
You can jump right in and get started by following the [Quickstart Guide](QUICKSTART.md).
35+
36+
For more information, read on.
37+
3338
### Configuring Your Local Environment
3439
There is an example configuration file in /src/main/resources called application-local.yml-example. By default this project's gradle bootRun command runs Spring using the "local" profile. So you can just copy that file to application-local.yml and replace the values (keys, URLs, etc..) with your values. If you are using a different profile to run (such as default) you will just need to ensure the same configs are in place in your active configuration file(s).
3540

0 commit comments

Comments
 (0)