Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 914 Bytes

README.md

File metadata and controls

49 lines (34 loc) · 914 Bytes

Summary

This project is a simple zipcode search API through GraphQL using Node.js, Typescript and React.js under monorepo architecture, with zippopotam.us free API.

Requirements

  • Operating system: Linux based/MacOS/WSL2 on Windows
  • npm 8
  • Node.js 16
  • Docker
  • Docker Compose

Environment Setup

# Clone the project using HTTPS
git clone https://github.com/Siipe/zip-challenge-monorepo.git

Installation

# Prepare database container
docker-compose -f "docker-compose.yml" up -d --build

# Install dependencies
npm install

Running

# Start & Watch for API changes (Port 5000)
npm run api

# OPTIONAL: you only need to run this command if you modify GraphQL queries, mutations or schema
npm run gen

# Start frontend (web) React (Port 3000)
npm run web

Tests

# e2e tests for the GraphQL API
npm run test:api