https://github.com/andrewda/ktor-react-starter
https://github.com/andrewda/ktor-react-starter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewda/ktor-react-starter
- Owner: andrewda
- License: mit
- Created: 2019-04-19T02:08:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T20:28:47.000Z (over 3 years ago)
- Last Synced: 2025-01-04T07:52:30.367Z (over 1 year ago)
- Language: Kotlin
- Size: 3.85 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spark
SERT's code for the Spark challenge @ Hack for a Cause 2019.
## Running
To run the program, use the commands below:
```bash
$ ./gradlew build # builds the frontend/backend
$ ./gradlew :backend:run # runs the backend server
```
After starting the backend, you can visit the website at `http://127.0.0.1:8080`.
If you're working on the frontend and would prefer a hot-reloading instance, you can use:
```bash
./gradlew :frontend:run
```
Then you can reach the frontend at `http://127.0.0.1:3000`.
## Docker
First, you'll need to build the `webapp` Docker image. However, before you can, you must first build the app. This can
all be done by following the commands below:
```bash
$ ./gradlew build
$ docker build -t webapp .
```
Once the image is done, start the web server and MySQL database with:
```bash
$ docker-compose up
```