Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

saskia002/kaardirakendus

 
 

Repository files navigation

Akustikaproov II

Fututre developments will be done under new repo: github.com/Kultuurihoidla/Akustikaproov

Documentation

API documentation: 
    - /v3/swagger-ui/index.html
    - /v3/api-docs

Backend

Run BE docker:

.env setup:
	1. add .env to the root folder.
	2. add 2 values into the .env file:
		a. POSTGRES_USER=<usrName>
		b. POSTGRES_PASSWORD=<pwd>

	* when trying to run or build with out .env file follow these commands:
		a. docker build --build-arg POSTGRES_USER=<usrName> --build-arg POSTGRES_PASSWORD=<pwd> -t your_image .
		b. docker run --env POSTGRES_USER=<usrName> --env POSTGRES_PASSWORD=<pwd>

Run docker:
	1. add the .env file
	2. Run: docker-compose up (-d)
	3. ????
	4. profit

	* You could also add the varables in side of the docker-compose.yml file and skip .env file:
		  service_name:
			  environment:
		      	- POSTGRES_USER=<usrName>
		      	- POSTGRES_PASSWORD=<pwd>

Run BE locally:

You need Java and PostgreSQL installed. Create env.properties file in src/main/resources where DB_URL, DB_USER, DB_PASSWORD will be the values for connectiong to your PostgreSQL database. When running backend Flyway will automagically create DB and prefill it with data.

Deploy to docker hub:

Run: .\build-and-deploy-img.bat

About

Akustikaproov II

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.6%
  • Java 28.1%
  • HTML 10.4%
  • CSS 10.0%
  • PLpgSQL 6.7%
  • Batchfile 0.6%
  • Dockerfile 0.6%