Skip to content

kazune-br/gin-gorm-firebase-minimum-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gin Gorm Firebase Minimum Template

Usages

Run app

$ make setup

Test app

$ make test

Migration

create migration

# ex
$ make new-migration FILE=create_users

apply migration

$ make migration

About .env

You must need .env file to run app appropriately. Before writing .env file, you must generate following commands in order to convert the json file of firebase service key into base64 because the app does not read service key as json but strings for some future development benefits.

$ cat firebase-adminsdk.json | base64

Then, create .env file as below

ENV=development|staging|production
API_PORT=put the port whatever you want to use
DB_PORT=put the port whatever you want to use
FIREBASE_JSON64=paste base64 strings

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published