Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 2.38 KB

README.md

File metadata and controls

71 lines (53 loc) · 2.38 KB

CRM Backend

HTTP server with Go

The project represents the backend of a customer relationship management (CRM) web application.

Repository link: https://github.com/elisaromondia/CRM-backend-GO

How to run

Open your favorite Terminal and run these commands:

Launch server:

go run .

Test:

go test

Swagger APIs docs, after launching the server it's possible to read the docs at:

https://elisaromondia.github.io/CRM-backend-GO/

or

http://localhost:3000/

CRUD operations

Handler functionality method path
getCustomers() Getting a list of all customers GET /customers/{id}
getCustomer() Getting data for a single customer GET /customers/
addCustomer() Adding a customer POST /customers/{id}
updateCustomer() Updating a customer's information PUT /customers/{id}
deleteCustomer() Removing a customer DELETE /customers/{id}

Customer structure

field type example
Name string Eric
Role string elite
Email string [email protected]
Phone uint 31463388
Contacted boolean false

Customer ID

  • New IDs are autogenerated using Google uuid
  • One Test ID is stored as test-9651-4a8c-9c9e-03a5849d94dd

Tech

Contributors ✨

Thanks goes to these wonderful people:


Elisa Romondia

💬 📖