A simple url shortener.
Clone the repository:
$ git clone https://github.com/cdubthecoolcat/smolurl
Build the front end (requires yarn
)
$ ./gradlew buildWeb
Build the backend:
$ ./gradlew build
Make sure you have a local PostgreSQL server running on port 5432. Then run
$ ./gradlew run
to run the server on port 8000.
Make sure you have docker-compose installed.
Then run
$ ./gradlew dockerUp
This will package the server into a JAR located at ./server/build/libs
, build the React frontend, and then copy the artifacts to a Docker container called app
. A separate Docker container for Postgres will be created as well.