Skip to content

A backend for the simplest to use motivator app. Written in golang and gin framework.

License

Notifications You must be signed in to change notification settings

Quote-Me/Quote-Me.Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quote-Me.Backend

A backend for the simplest to use motivator app. Written in golang and gin framework.

Architecture

Setup

First seed the data into the database by running:

mongoimport -h localhost --db quote-me --collection quotes --file data/quotes.json --jsonArray
mongoimport -h localhost --db quote-me --collection photos --file data/photos.json --jsonArray

You can configure the --db and --collection parameter.

After you have done so, create a yaml config file (e.g dev.yaml). The structure should resemble the following:

mongo:
  url: mongodb://localhost:27017
  db: quote-me
  quotesCollection: quotes
  photosCollection: photos
server:
  port: :8080

After that you can run the server with this command

go run main.go config.yaml

Credits

Thanks to https://github.com/akhiltak/inspirational-quotes for the incredible amount of data provided.

About

A backend for the simplest to use motivator app. Written in golang and gin framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages