Siga-Professor

command module
v0.0.0-...-4ddbc21 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 5 Imported by: 0

README

Siga-Professor

demonstration

Table of Contents

About

This repository is a Simple api that access every UFRJ course and get all the oppened disciplines and their professors. It was built using golang. If you want to see the chart you can access it: MongoDB Chart

Requirements

To run this repository by yourself you will need to have the go compiler on your operational system to run the code bellow.

How to use

API Routes
  • '/filldatabase': This route access every UFRJ course and stores the data in a mongodb.
  • '/professors/<professor_name>': This route only works after the first one.
Program Setup
# Clone this repository
$ git clone <https://github.com/DantasB/Siga-Professor>

# Access the project page on your terminal
$ cd Siga-Professor/

# Create a .env file
$ touch .env  

# Create the following parameters
 CONNECTION_URL="mongodb+srv://{USER}:{PASSWORD}@{HOST}/{DATABASE}?{PARAMS}" #Your MongoDB connection url
 MONGODB_USER #Your MongoDB connection username
 MONGODB_PASSWORD #Your MongoDB connection password
 MONGODB_HOST #The database host
 MONGODB_PARAMS #The params of the connection (retryWrites,w, etc...)
 MONGODB_DATABASE #Your database name

# Compile the entire project
$ go run .

# The code will start in the port 8000

demonstration

Technologies

  • Golang
  • gorilla

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