go-url-shortener

module
v0.0.0-...-1e32cb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: MIT

README

Go-Url-Shortener

This project demonstrates basic CRUD operations using the Go programming language.

Contents

  1. Installation
  2. Usage
  3. Test
  4. Contributing
  5. License

Installation

  1. Clone this project: git clone https://github.com/afurgapil/go-url-shortener.git
  2. Navigate to the project directory: cd go-url-shortener
  3. Create the urls table on your MySQL server by running the db-schema.sql file.
  4. Install dependencies: go mod tidy
  5. Check .env file

Usage

  1. Run the server: go run cmd/go-url-shortener/main.go
  2. Access the API using an HTTP client.

Test

Test files are located in the test folder.

To run all tests go test ./test/... -v

Contributing

If you encounter any issues or have suggestions for improvements, please feel free to contribute. Your feedback is highly appreciated and contributes to the learning experience.

I especially need help in automating test processes. I have an automation experiment in .github/workflows/go.yaml, but I couldn't get the docker, mysql and test process to work properly. your help on this would make me very happy!

License

This project is licensed under the MIT License. For more information, please refer to the LICENSE file.

Directories

Path Synopsis
cmd
internal
db
url
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL