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.
- Overview
- Project Structure
- Getting Started
- Backend (NestJS)
- Frontend (React Native)
- Core Components
- License
- 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.
dreamk/
├── backend/ # NestJS GraphQL API
├── mobile/ # React Native application
└── core/ # Shared entities and interfaces
- Node.js (v18+)
- npm or yarn
-
Clone the repository:
git clone https://github.com/hg-higgor-calheiros/dreamk.git cd dreamk
-
Install dependencies:
$ yarn
-
Run the backend server:
$ yarn apps:backend
-
Run the mobile app:
$ yarn apps:mobile
A NestJS application that provides a GraphQL API for managing cocktails data. It includes endpoints for creating, reading, updating, and deleting drinks.
- GraphQL API: Query and mutate drink data.
- CRUD Operations: Fully functional drink management.
- Validation: Ensures data integrity with decorators.
-
Start development server:
yarn apps:backend
-
Access GraphQL Playground:
Visithttp://localhost:4000/graphql
.
A cross-platform mobile app built with React Native. It fetches and displays drink data from the backend.
- Drink List: Displays a list of drinks.
- Offline Support (optional): Cache drink data locally.
-
Run on Android:
$ yarn apps:mobile
A shared library that includes core entities and interfaces used in both the backend and frontend to ensure consistent types.
-
Importing in Backend:
import { Drink } from '../core/entities';
-
Importing in Frontend:
import { Drink } from '../core/entities';
-
Build core package:
$ yarn packages:core
This project is licensed under the MIT License. See the LICENSE file for details.