-
Install Golang in your machine
-
Install Golang-Migrate for preparing database
Repository can be found here.
-
Run migrate
Migration can be executed with this command:
migrate -source file://./db/migrations -database "mysql://root:root@tcp(localhost:3307)/techdo_db" up
Note:
root:root
is your username:password for database.localhost:3307
is your database address.techdo_db
is your database name. Need to be created first!
-
Change
.env
file value according to your own value. Variable description:Variable Description APP_NAME Current app name, not affecting front end, only used for logging PORT Port which server will listen to, eg: 80 DB_ADDRESS DBMS address, eg: localhost:3307 / :3307 DB_USERNAME Database username that have acces to CRUD operation in table DB_PASSWORD Database password for username DB_NAME Database name where table is stored IMGKIT_PRIVKEY Private key for IMGKIT account IMGKIT_PUBKEY Public key for IMGKIT account -
Run app App can be started with this command:
go run cmd/main/main.go
-
Notifications
You must be signed in to change notification settings - Fork 1
suryaadi44/Techdo-blog
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple WYSIWYG Blog Project
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published