Service_Order_System
It is a service order system implemented using Golang
This program allows users to create service Orders to a company who give mantain and support of television by technicians asistense
Enviroment
This project was completly developed in windows 10
Dependecies
go 1.5
mysql 3.4
gqlgen v0.11.3
Docker image
You can build the image by:
docker build -t golang-ubuntu:1151604 .
and start it by:
docker run -p 8000:8000 golang-ubuntu:1151604
Executing
you can run the server by:
go run server.go
Be sure the database is mysql and is running on the port 3306
Also, you can build an image of the server by:
go build server.go
Usage
Once executed you can request from the localhost:8000/graphql
you must request by the graphql standars, if you use postman, you can import this file to see some examples of petitions
Also, you can look at the schema file in order to have some documentation of the entities
Entities
You can register Users using the createUser mutation
You can register Technicians using the createTechnician mutation
You can register Orders using the createOrders mutation
This last one requires that you are a registed User and be logged.
In order to log as User you must use the login mutation, it will retreive a token. Once got it, require the createOrders adding the "Authorization" header