Skip to content

About

Back-end repo for the web app version of Where's Waldo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Where's Waldo?

Back end for the web app version of Where's Waldo game. Built using Express and Prisma. Authentication handled via JWT. Using react-zoom-pan-pinch library for image manipulation.

Prerequisites

  • Node.js (v18 or higher)
  • PostgreSQL database server
  • npm or yarn

Database Requirements

Before installation, make sure to:

  1. Create a PostgreSQL database for development
  2. Create a separate PostgreSQL database for testing
  3. Note down your database credentials for the .env file

Installation

# Clone the repository
git clone git@github.com:goran1010/waldo-back-end.git

# Navigate to project directory
cd waldo-back-end

# Install dependencies
npm install

# Setup environment variables
cp .env.example .env
# Edit .env with your database credentials and secret

# Initialize database and run migrations
npx prisma migrate dev

Usage

# Start development server with hot reload
npm run dev

# Start production server
npm run start

# Run tests
npm run test

Environment Variables

  • DATABASE_URL: PostgreSQL URL for development database
  • TEST_DATABASE_URL: PostgreSQL URL for test database
  • SECRET: JWT secret key
  • PORT: Server port (defaults to 3000)

License

MIT

About

Back-end repo for the web app version of Where's Waldo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages