GitXplorerGitXplorer
D

siga-professor

public
6 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
4ddbc2173741dd1842894a89456238239e468a3d

Merge pull request #32 from DantasB/github_ci

DDantasB committed 3 years ago
Unverified
9a79431c7039e40445b5e91e793850bf07f1ad46

Add new disable statement

DDantasB committed 3 years ago
Unverified
dc82f4f9918e2335c543f1d39a2d492b36ea32b5

Fix disable statement

DDantasB committed 3 years ago
Unverified
b205260f8a482533994dde6fd8fca5e778781237

Disable errcheck on golinter

DDantasB committed 3 years ago
Unverified
8968c7dca04da30fcd3f6214953edba72839744e

Fix setup step name

DDantasB committed 3 years ago
Unverified
56e7aeda216954a608bf16c029b2c907ec6a0250

Disable govet

DDantasB committed 3 years ago

README

The README file for this repository.

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