Giter Site home page Giter Site logo

cafe-everywhere-api's Introduction

Cafe Everywhere

Welcome to Cafe Everywhere, API with purpose to connecting Baristas and Customers. This documentation will guide you through setting up and building Cafe Everywhere.

Dashboard: https://github.com/michaelact/cafe-everywhere

Cafe Everywhere is a toy project and was only made in less than 2 days, for a college assignment.

Quick Start

Follow these simple steps to get Cafe Everywhere up and running on your local environment.

Prerequisites

Make sure you have the following installed on your system:

Setup

  1. Clone the Repository:

    git clone https://github.com/michaelact/cafe-everywhere-api
    cd cafe-everywhere-api
  2. Start the Database:

    docker compose -f docker-compose.dev.yml up -d
  3. Perform Database Migration:

    • Access Adminer
    • Connect to PostgreSQL with the following details:
      • System: PostgreSQL
      • Database: database
      • Username: dev
      • Password: HaloPassword138
    • Create a new database named cafe-everywhere
    • Execute queries from database/migrations/
  4. Install Dependencies:

    go install
  5. Set Environment Variables:

    source .env.example
  6. Run the API:

    go run main.go

Access Cafe Everywhere API at http://localhost:9999.

Build Cafe Everywhere

If you want to build Cafe Everywhere into a single binary file, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/michaelact/cafe-everywhere-api
    cd cafe-everywhere-api
  2. Install Dependencies:

    go install
  3. Build the Application:

    go build
  4. Check the Generated Binary File:

    • The binary file named cafe-everywhere will be in the root directory.
  5. Make it Executable:

    chmod +x ./cafe-everywhere
  6. Move it to bin directory:

    sudo mv ./cafe-everywhere /usr/local/bin/

Now you can run Cafe Everywhere from anywhere in your terminal by simply typing cafe-everywhere.

License

Cafe Everywhere is licensed under the MIT License.

Author

Cafe Everywhere is created by Michael Act.

cafe-everywhere-api's People

Contributors

michaelact 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.