Skip to content

A graduate-level operating systems project integrating golang with rest api and a mysql server.

Notifications You must be signed in to change notification settings

Mjacks3/OS_Proj_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CMSC 691 Project 1

Installation and Dependencies

Instructions for installing on Ubuntu 18.10

Setting up Go Environment:

git clone https://github.com/Mjacks3/OS_Proj_1.git
cd OS_Proj_1
go get github.com/gorilla/mux
go get github.com/go-sql-driver/mysql

Setting up MySQL database:

sudo apt-get install mysql-server
sudo systemctl start mysql
sudo mysql -u root < init.sql

Running the REST API server

go run proj1.go

Interacting with the REST API

Site Interaction

CREATE: curl --header "Content-Type: application/json" --request POST --data '[json data]' 127.0.0.1:8000/site/
READ: curl 127.0.0.1:8000/site/[site_name]/
DELETE: curl -X "DELETE" 127.0.0.1:8000/site/[site_name]/
UPDATE: curl -X "PUT" -H "Content-Type: application/json" -d '[json data]' 127.0.0.1:8000/site/[site_name]/

AccessPoint Interaction

CREATE: curl --header "Content-Type: application/json" --request POST --data '[json data]' 127.0.0.1:8000/site/[site_name]/ap/
READ: curl 127.0.0.1:8000/ap/[ap_name]/
DELETE: curl -X "DELETE" 127.0.0.1:8000/ap/[ap_name]/
UPDATE: curl -X "PUT" -H "Content-Type: application/json" -d '[json data]' 127.0.0.1:8000/ap/[ap_name]/

About

A graduate-level operating systems project integrating golang with rest api and a mysql server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages