Skip to content

lzake/go-and-angular-website

Repository files navigation

Zach Lowe's Go and Angular User Management

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 Management System

Features

  • User Creation: Add new users with unique usernames and emails.
  • User Editing: Update existing user details.
  • User Deletion: Remove users from the system.

Error Handling

User Creation Error

User Creation Error

User Editing Error

User Editing Error

Getting Started

Prerequisites

Backend

  1. Navigate to the backend directory:
    cd backend
  2. Create a config.json file 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"
      }
    }
  3. Install dependencies:
    go get ./...
  4. Run the server:
    go run main.go

Frontend

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Serve the app:
    ng serve

Usage

  • Navigate to http://localhost:4200 to 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.

License

This project is just kind of done by me so feel free to copy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published