Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/innashpota/company-structure
A company structure with a list of projects and their users
https://github.com/innashpota/company-structure
angular-material angular8 backend docker frontend jasmine java junit karma spring ts typescript unittest webapp
Last synced: about 1 month ago
JSON representation
A company structure with a list of projects and their users
- Host: GitHub
- URL: https://github.com/innashpota/company-structure
- Owner: innashpota
- License: apache-2.0
- Created: 2019-08-15T19:40:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-18T03:37:12.000Z (about 2 months ago)
- Last Synced: 2024-10-01T09:42:59.806Z (about 2 months ago)
- Topics: angular-material, angular8, backend, docker, frontend, jasmine, java, junit, karma, spring, ts, typescript, unittest, webapp
- Language: TypeScript
- Size: 13.2 MB
- Stars: 55
- Watchers: 3
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/shpotainna/company-structure.svg?branch=master)](https://travis-ci.com/shpotainna/company-structure)
[![](https://img.shields.io/codecov/c/github/shpotainna/company-structure?color=green&logo=test%20coverage)](https://codecov.io/gh/shpotainna/company-structure)Company Structure
=================A simple CDUD application representing a company structure.
The application is built using Java 11, Spring Boot 2 and PostgreSQL on the backend, Angular 8 and TypeScript on the frontend, Docker for building and running.
![main-window](./showcase/showcase.gif)
## Environment Setup
You need to have Docker to be able to build and run the application.
## How to build and run
1. Build the backend application image
```docker build -t=cs-backend -f Dockerfile.backend .```
2. Build the frontend application image```docker build -t=cs-frontend -f Dockerfile.frontend .```
3. Create a docker network```docker network create cs-net```
4. Start the database
```
docker run -p 5432:5432 \
-e POSTGRES_USER=company-structure \
-e POSTGRES_PASSWORD=company-structure \
-e POSTGRES_DB=company-structure \
--name cs-db \
--net=cs-net \
postgres:11.5
```
5. Start the backend```
docker run --name=cs_backend \
--net=cs-net \
-p 8080:8080 \
cs-backend:latest
```
6. Start the frontend```
docker run --name=cs_frontend \
-p 4200:4200 \
cs-frontend:latest
```The application is accessible on http://localhost:4200.