detect-server-security-bakend is the backend of SecurityServer App https://github.com/nikoremi97/detect-server-security-frontend-app.
It was made using the following technologies:
- Go as language
- Chi as the API router
- CockroachDB as its DB
To run this project, do the following steps:
-
Clone this project
-
Install Go in your machine -> https://golang.org/doc/install
-
Add these packages to Go:
3.1github.com/asaskevich/govalidator
3.2github.com/likexian/whois-go
3.3github.com/go-chi/chi
3.4github.com/cockroachdb/cockroach-go/crdb
3.5github.com/gofrs/uuid
-
Install CockroachDB in your machine -> https://www.cockroachlabs.com/docs/stable/install-cockroachdb-linux.html
-
Init a local cluster:
5.1 Follow this guide changing the ip address as192.168.1.58
instead of localhost -> https://www.cockroachlabs.com/docs/stable/start-a-local-cluster.html.
5.2 Start the sql cmd with the commandcockroach sql --insecure --host=192.168.1.58:26257
5.3 To set up the DB, run the sql lines insrc/database/db_schema.sql
separated by;
-
On path
src/main
rungo run main.go
Enjoy!