https://github.com/feed0/estaciona-uai-archived-idx
https://github.com/feed0/estaciona-uai-archived-idx
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/feed0/estaciona-uai-archived-idx
- Owner: feed0
- Created: 2025-05-04T23:30:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-17T23:46:31.000Z (about 1 year ago)
- Last Synced: 2025-09-12T21:19:49.217Z (10 months ago)
- Language: Java
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java API Service Starter
This is a minimal Java API service starter based on [Google Cloud Run Quickstart](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-java-service).
## Getting Started
Server should run automatically when starting a workspace. To run manually, run:
```sh
mvn spring-boot:run
```
## PostgreSQL
### Initialize and Start PostgreSQL
```sh
initdb -D /tmp/postgres
echo "unix_socket_directories = '/tmp/postgres'" >> /tmp/postgres/postgresql.conf
pg_ctl -D /tmp/postgres start
```
### If disconnected
```sh
pg_ctl -D /tmp/postgres status
pg_ctl -D /tmp/postgres start
```
### Create and Connect to estaciona_uai DB
```sh
createdb -h /tmp/postgres estaciona_uai
psql -h /tmp/postgres estaciona_uai
```
### Create user
```sql
CREATE USER postgres WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON SCHEMA public TO postgres;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO postgres;
```
## Spring Application
### Run
```sh
/nix/store/dkvhx83088f7d142jakxcfkkay23m31h-run-server
```