Skip to content

Ssharma1230/Turnstile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Turnstile

Track your live sports experiences. Share with friends. Relive the memories.

Project Structure

turnstile/
├── backend/          # Node.js/Express API
└── mobile/           # React Native (Expo) app

Getting Started

Prerequisites

  • Node.js 18+
  • PostgreSQL (or Docker)
  • Expo CLI
  • iOS Simulator (Mac) or Android Emulator

Backend Setup

  1. Install dependencies:
cd backend
npm install
  1. Set up database:
# Using Docker (recommended)
docker-compose up -d
docker exec -i turnstile-db psql -U postgres -d turnstile < src/config/db-setup.sql

# Or using local PostgreSQL
createdb turnstile
psql -d turnstile -f src/config/db-setup.sql
  1. Start server:
npm run dev

API will be available at http://localhost:3000

Mobile App Setup

  1. Install dependencies:
cd mobile
npm install
  1. Start Expo:
npx expo start
  1. Run on device/simulator:
  • Press i for iOS
  • Press a for Android
  • Scan QR with Expo Go app

Tech Stack

Backend:

  • Node.js + Express
  • PostgreSQL
  • JWT Authentication
  • Multer (file uploads)

Mobile:

  • React Native (Expo)
  • React Navigation
  • Axios (API calls)
  • Expo Image Picker

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published