Skip to content

Latest commit

 

History

History
150 lines (104 loc) · 2.49 KB

readme.md

File metadata and controls

150 lines (104 loc) · 2.49 KB

Movie App 🎬

License

A full-stack application for movie enthusiasts. Browse, review, and discuss your favorite movies!

Table of Contents

Description

This application allows users to browse movies, write reviews, and engage in discussions. It's built with a focus on providing a seamless user experience and efficient performance.

Tech Stack

This application uses a variety of technologies in its stack:

Installation

Running with Docker

  1. Navigate to the movie-app directory:

    cd movie-app
  2. Create a .env file in the movie-app directory with the following variables:

    SALT=
    JWT_SECRET=
    DB_HOST=
    DB_NAME=
    DB_USER=
    DB_PASS=
    DB_PORT=
    PORT=
  3. Build the Docker images:

    docker-compose build
  4. Start the Docker containers:

    docker-compose up

Running Without Docker

  1. Create a .env file in the movie-app/server directory with the following variables:

    SALT=
    JWT_SECRET=
    DATABASE_URL=
  2. Install the server dependencies and start the server:

    cd server
    npm install
    npx prisma generate
    npx prisma db seed
    npm run dev
  3. Install the client dependencies and start the client:

    cd client
    npm install
    npm run build
    npm run preview

Requirements

  • Node.js: v18 or above
  • npm: v10 or above
  • Docker: v25 or above

Usage

After starting the server and client, you can access the application at http://localhost:5173.

Testing

Server

To run server tests:

cd server
npm run test

For unit tests:

npm run test:unit

For integration tests:

npm run test:integration

Client

To run client tests:

cd client
npm run test

For unit tests:

npm run test:unit

For integration tests:

npm run test:integration

License

This project is licensed under the MIT License.