Giter VIP home page Giter VIP logo

playlist-api's Introduction

Playlist Backend Server


Capstone Project of a Backend Go Server.

Food Subscriptions

To help our users avoid the hassle of deciding what food to order, we want to create a Food Playlist! We need a beautify UI where users can input food preferences, and based on such preferences generate a ""playlist"" of food deliveries. For example, a user might want to eat halal Hamburgers, and the user wants a hamburger delivered every Thursday at 2pm. The system would then generate a ""playlist"" of different hamburger dishes from various restaurants such that each Thursday at 2pm the user receives a hamburger without any intervention. The user should be able to pause the playlist if they are traveling etc.


Steps to run

  1. Ensure Golang is install.

https://go.dev

  1. Ensure golang-migrate is install.
brew install golang-migrate
  1. Run the following cmd for setup
make start-and-migrate
  1. Start Backend Server
make server

Others

Docker replacement

brew install docker docker-compose
brew install colima
colima start

Install SQLC

https://docs.sqlc.dev/en/latest/overview/install.html

Install Go Mock https://github.com/uber-go/mock

go install go.uber.org/mock/mockgen@latest

Add Path

nano ~/.zshrc
export PATH=$PATH:~/go/bin

Notes

  1. make postgres-image (download postgres image)
  2. make postgres (start container)
  3. make createdb (make dropdb)
  4. make sqlc (if sql files are not generated)
  5. make migrateup (make migratedown)
  6. make test

Database Design

playlist

Demo Preview

Demo Preview Video

playlist-api's People

Contributors

jichong-tay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.