Course System
This is the project for ByteCamp 2022 Winter, developed by Group 28
with ❤️.
Quick Start
-
Clone the project.
git clone https://github.com/Dexter1636/course_system.git
-
Download modules.
cd course_system go mod download
-
Add application config file and test config file.
Write the following code to your
course_system/config/application.yaml
:server: port: 8080 datasource: driverName: mysql host: <hostname> port: <port> database: <database_name> username: <username> password: <password> charset: utf8 redis: host: <hostname> port: <port> db: <db> user: <username> password: <password> logger: level: info
And the same for
course_system/config/test.yaml
, which is used for testing. -
Run.
go run .
Note
-
Remember to use your own branch for your development.
Do this before coding:
git checkout dev git branch <your_branch_name> git checkout <your_branch_name> git push --set-upstream origin <your_branch_name>
-
Do NOT track
application.yaml
andtest.yaml
since they contain sensitive data.