MohamedYasser343 / School-System

Freelancing Project for my STEM SChool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

School-System

Freelancing Project for my STEM SChool

This system was programmed by me and another friends help me in building and programming it.


Table Of Content

This repo consists of:

  1. snap.sql (database code)
  2. backend files (written in go-lang)
  3. frontend files (paid template was used and some js coding for fetch apis coming from backend)

How To Install

install the project:

git clone https://github.com/MohamedYasser343/School-System.git

How To Run

  1. insert data in snap.sql using:
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
  1. config your database in Database/Connection.go:
var DBAddress string = "<user>:<password>@tcp(<ip>:3306)/<database_name>"

var DB *gorm.DB

func Connect() {
	connection, err := gorm.Open(mysql.Open("<user>:<password>@tcp(<ip>:3306)/<database_name>"), &gorm.Config{})
	if err != nil {
		panic("Couldn't Connect To The Database.")
	}
	DB = connection
	connection.AutoMigrate(&Models.User{})
}

About

Freelancing Project for my STEM SChool

License:GNU General Public License v3.0


Languages

Language:HTML 79.5%Language:Less 8.2%Language:CSS 7.1%Language:Go 4.6%Language:JavaScript 0.4%Language:SCSS 0.1%Language:Python 0.0%Language:Makefile 0.0%