lets-go-chat

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT

README

lets-go-chat

Placeholder for the future project (lets-go-chat)

To run the application Go language must be installed (please refer to https://golang.org/doc/install )

The application can be downloaded from GitHub using

To run the application, start terminal from the application directory and run the command:

    $ go mod tidy
    $ go run main.go
    OR
    $ go run .

To run the hasher package tests, start terminal from the package directory and run the command:

    $ go test

To check locally:

  • Create User:
curl -v POST http://localhost:8080/v1/user -H 'Content-Type: application/json' -d '{"userName":"my_login","password":"my_password"}'
  • Login User:
curl -v POST http://localhost:8080/v1/user/login -H 'Content-Type: application/json' -d '{"userName":"my_login","password":"my_password"}'

App was deployed to heroku To check on heroku:

  • Create User:
curl -v POST https://dry-river-87369.herokuapp.com/v1/user -H 'Content-Type: application/json' -d '{"userName":"my_login","password":"my_password"}'
  • Login User:
curl -v POST https://dry-river-87369.herokuapp.com/v1/user/login -H 'Content-Type: application/json' -d '{"userName":"my_login","password":"my_password"}'

Directories

Path Synopsis
Placeholder main package for the future project (lets-go-chat)
Placeholder main package for the future project (lets-go-chat)
internal
pkg
hasher
Package hasher implements hashing string password and password vs hash comparison
Package hasher implements hashing string password and password vs hash comparison

Jump to

Keyboard shortcuts

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