studentjobengine

command module
v0.0.0-...-443e708 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

README

studentjobengine

a location based student jobs api

Getting started

This project requires Go to be installed. On OS X with Homebrew you can just run brew install go.

ENV

Set the following environment variables

DBTYPE=<db type>
DBHOST=<host>
DBPORT=<port>
DBNAME=<dbname>
DBUSER=<user>
DBPASSWD=<password>

Running it then should be as simple as:

$ make build
$ ./bin/studentjobengine
Testing

make test

Tips
  • curl -H "Content-Type: application/json" --data @sample.json 127.0.0.1:8080/jobs/add
  • curl 127.0.0.1:8080/jobs | python -m json.tool
Login
  • curl -H "Content-Type: application/json" --data @user_login.json 127.0.0.1:8080/users/login |python -m json.tool
  • export TOKEN=<JWT>
  • curl -H "Authorization: Bearer $TOKEN" <url>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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