Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shpota/go-angular
A simple CRUD application written with Go and Angular
https://github.com/shpota/go-angular
angular angular-material docker full-stack go golang typescript
Last synced: 17 days ago
JSON representation
A simple CRUD application written with Go and Angular
- Host: GitHub
- URL: https://github.com/shpota/go-angular
- Owner: Shpota
- License: apache-2.0
- Created: 2019-10-09T12:01:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T01:58:23.000Z (over 1 year ago)
- Last Synced: 2024-05-28T18:21:07.162Z (6 months ago)
- Topics: angular, angular-material, docker, full-stack, go, golang, typescript
- Language: TypeScript
- Homepage:
- Size: 3.65 MB
- Stars: 73
- Watchers: 5
- Forks: 35
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A simple web application written with Go and Angular
===================================================> ⚠ Disclaimer
>
> I created this project a while ago, and it might need to be updated. Check out **[Goxygen](https://github.com/Shpota/goxygen)** , a tool for creating modern web projects with Go and Angular, React, or Vue.I implemented this application while evaluating Go.
On the back end side, I used
[gorilla/mux](https://github.com/gorilla/mux) for
routing, [Gorm](https://github.com/jinzhu/gorm) as an
ORM engine and
[google/uuid](https://github.com/google/uuid)
for UUID generation. On the front end side, I used
[Angular](https://angular.io/) and
[Angular Material](https://material.angular.io/).![Showcase](showcase/showcase.gif)
## System requirements
You need to have [Docker](https://www.docker.com)
installed in order to build and run the application.
No additional tools required.## How to build and run
1. Create a Docker network:
```shell script
docker network create students-net
```
2. Start the DB:
```shell script
docker run \
-e POSTGRES_USER=go \
-e POSTGRES_PASSWORD=your-strong-pass \
-e POSTGRES_DB=go \
--name students-db \
--net=students-net \
postgres:11.5
```
3. Build the application image:
```shell script
docker build -t students-app .
```
4. Start the application container:
```shell script
docker run -p 8080:8080 \
-e DB_PASS='your-strong-pass' \
--net=students-net students-app
```
Access the application via http://localhost:8080