Git
Having GIT will allow Golang to retrieve the necessary drivers in order to run MeetRITE correctly. Installation Instructions:
- Please open your terminal application
Assuming your terminal application is up to date, please execute the following commands.
sudo apt-get install git
y
to approve installation
If prompted for the sudo password, please enter the sudo password for your machine.
You have successfully installed Git.
Golang
The chosen programming language to support the database and server applications. Because of distribution copyrights, one will have visit this site to download the latest version of Golang. Installation Instructions:
- Visit this site to download the latest version of Golang for Linux.
- Open your terminal application
- Navigate in the terminal to your Downloads folder or
cd Downloads
y
to approve installation
Please execute the following commands:
sudo tar -C /usr/local -xzf go1.9.2.linux-amd64.tar.gz
If prompted for the sudo password, please enter the sudo password for your machine.
cd
- In your favorite text editor, please open the .profile file and add the following line of code to the bottom:
export PATH=$PATH:/usr/local/go/bin
- You may now save and exit that file.
- Finally execute this last command
. .profile
Golang Dependencies:
- Please enter the following commands on your machine, it will install the dependencies that are need for MeetRITE
cd
go get github.com/go-sql-driver/mysql
go get github.com/gorilla/sessions
go get github.com/labstack/echo
go get github.com/labstack/echo-contrib/session
go get github.com/labstack/echo/middleware
go get golang.org/x/crypto/bcrypt
You have successfully installed Golang.
MySQL
The open source database application that will be storing the information needed for MeetRITE to gather analytics and store information about meetings. Installation Directions:
- Please Execute the Following Commands for Installation
cd
sudo apt-get install mysql-server
If prompted for a sudo password, please enter the sudo password of your machine.
y
MySQL will ask you for a password to protect your database access, it is your choice whether you want to leave it blank or make one up, but you must remember it to access the database.
- Please Execute the Following Commands for Creating the MySQL Database
cd
sudo mysql -u root -p
If prompted for a sudo password, please enter the sudo password of your machine.Enter the password you selected for MySQL during installation (press enter if no password was used).
create database collab
“collab” is a default name chosen for the database, you may modify this string if you would like.
create user ‘user’@’localhost’ identified by ‘password’
Please note that the ‘user’ and ‘password’ fields are default, they can be made to be what ever you like.
grant all privileges on *.* to ‘user’@’localhost’
In the previous command, please note that if ‘user’ was changed in the previous command, the same string must be used here.
exit
- Please Execute the Following Commands for Editing the Database Configuration File
If you have been following the installation with the default values that have been used so far, you may proceed to the Creating Database Tables section, however if you have change the default values, then you must do the following:
cd backend/DBScripts
If the previous command written does not redirect you to the correct subdirectory of MeetRITE, please navigate to this directory in the custom location MeetRITE was placed.
- In your favorite text editor, please open the “mysql.conf“ file
Based on the respective changes made, please update the parameters listed to access and query the database correctly.
- Please Execute the Following Commands for Creating Database Tables
cd backend/DBScripts
If the previous command written does not redirect you to the correct subdirectory of MeetRITE, please navigate to this directory in the custom location MeetRITE was placed.
- Under the assumption that the “mysql.conf” file is correctly configured, please enter the following command
go run createDB.go
You have successfully setup the database.
- Please Execute the Following Commands to build the frontend vue webpack
- Please navigate to the frontend folder using
cd frontend
and enter the following commands
npm install
npm run build
You have successfully built the files for MeetRITE.
- Please Execute the Following Commands for Running the Server
- To run the application, please navigate to the backend folder using
cd backend
If that does not work, then please navigate to the custom location for where MeetRITE is located and go into the backend subdirectory.
- Please execute the following command
go run server.go APIv1.go statistics.go
You are now successfully hosting MeetRITE.