This project showcases a user management system built with Go for the backend and Angular for the frontend. Users can be created, edited, and deleted with seamless interactions.
- User Creation: Add new users with unique usernames and emails.
- User Editing: Update existing user details.
- User Deletion: Remove users from the system.
- Go
- Node.js
- Angular CLI
- PostgreSQL version 10 or higher
- other libraries:
- Material components - https://material.angular.io/
- Angular testing: Jasmine and Karma
- Echo as web framework - https://echo.labstack.com/
- Data access - https://github.com/Masterminds/squirrel
- Go testing Ginkgo and Gomega
- other libraries:
- Navigate to the backend directory:
cd backend - Create a
config.jsonfile with the following contents:{ "database": { "host": "localhost", "user": "YOUR_USER", "password": "YOUR_PASSWORD", "dbname": "YOUR_DATABASE", "port": 5432, "sslmode": "disable" }, "app": { "timezone": "America/New_York" } } - Install dependencies:
go get ./...
- Run the server:
go run main.go
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install
- Serve the app:
ng serve
- Navigate to
http://localhost:4200to access the application. - Use the interface to manage users:
- Create: Add a new user using the "Create User" button.
- Edit: Update user details via the edit button next to each user.
- Delete: Remove a user using the delete button next to each user.
This project is just kind of done by me so feel free to copy.
