Skip to content

Mobile application + backend that returns drinks based on your ingredients

Notifications You must be signed in to change notification settings

hg-higgor-calheiros/cocktail-app-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drink Manager Project

A full-stack project for managing drink data, built with a NestJS backend, a React Native mobile app, and a Core Components library for shared entities and interfaces.

Table of Contents


Overview

  • Backend: A NestJS server exposing a GraphQL API for CRUD operations on drink data.
  • Frontend: A React Native app that lists and displays drink information.
  • Core: A shared library with common entities and interfaces.

Project Structure

dreamk/ 
├── backend/ # NestJS GraphQL API 
├── mobile/ # React Native application 
└── core/ # Shared entities and interfaces

Getting Started

Prerequisites

  • Node.js (v18+)
  • npm or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/hg-higgor-calheiros/dreamk.git
    cd dreamk
  2. Install dependencies:

    $ yarn
  3. Run the backend server:

    $ yarn apps:backend
  4. Run the mobile app:

     $ yarn apps:mobile

Backend (NestJS)

Description

A NestJS application that provides a GraphQL API for managing cocktails data. It includes endpoints for creating, reading, updating, and deleting drinks.

Features

  • GraphQL API: Query and mutate drink data.
  • CRUD Operations: Fully functional drink management.
  • Validation: Ensures data integrity with decorators.

Commands

  • Start development server:

    yarn apps:backend
  • Access GraphQL Playground:
    Visit http://localhost:4000/graphql.


Frontend (React Native)

Description

A cross-platform mobile app built with React Native. It fetches and displays drink data from the backend.

Features

  • Drink List: Displays a list of drinks.
  • Offline Support (optional): Cache drink data locally.

Commands

  • Run on Android:

    $ yarn apps:mobile

Core Components

Description

A shared library that includes core entities and interfaces used in both the backend and frontend to ensure consistent types.

Usage

  • Importing in Backend:

    import { Drink } from '../core/entities';
  • Importing in Frontend:

    import { Drink } from '../core/entities';

Commands

  • Build core package:

    $ yarn packages:core

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Mobile application + backend that returns drinks based on your ingredients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published