Giter Site home page Giter Site logo

cinemania's Introduction

Cinemania

➑️ LINK TO THE APP

Description

Full stack web application built as Final Project for Class 23 of Hack Your Future Denmark

The main functionalities of the app are:

  • Sign up for an account, log in and log out
  • Search for a movie & filter movies on categories, price, rating and date
  • Leave a review & edit review
  • "Buy" a movie
  • Save movies in your favorite list

Crafted by a collaboration of three teams πŸ—ΊοΈ guided by πŸ§™β€β™€οΈ Karolina & πŸ§™β€β™‚οΈTim

LANDING Team πŸš€

VIEW Team πŸ‘€

LIST Team πŸ“œ

Technologies Used

Frontend

Backend

Screenshots

Development

Prerequisites

  • node >= 18.16.0
  • yarn installed
  • .env.example in client and in server copied, renamed to .env and filled with the right credentials (optional for server if you plan to use Docker)
  • create the database according to the name in the .env file (optional if you plan to use Docker)
  • Docker installed - if you plan to use it instead of directly using MySQL

Steps to set up the database

Important steps for those using Docker

  • cd packages/server
  • (Optional) update the credentials in the newly created .env. If you skip this step everything should work, but your database will have a generic name and user
  • Run this command to build a database with Docker: docker compose up -d. The database will be built based on the values in .env

Create, fill and test the database (steps for both docker and no-docker setup)

  1. yarn at the root to install dependencies
  2. cd packages/server
  3. yarn db:setup to run example migrations and seeds
  4. yarn dev to start the server in development mode
  5. check http://localhost:5001/api/movies to verify that the API works and you can read data from the database

yarn commands

npm commands are replaced with yarn which provides a faster experience and better organisation of dependencies. Do not run any npm commands!

To run client (frontend):

yarn workspace client start

or

cd packages/client yarn start

To run server (backend):

yarn workspace server dev

or

cd packages/server yarn dev

Below are the most frequently used commands:

Command Description Scope
yarn workspace [workspace] [command] Run a given command in a dedicated workspace. root
yarn prettier:fix Run Prettier with the write flag. root
yarn lint Run Eslint. Can be run in all scopes. root, client, server
yarn knex Run knex commands. Will always operate on the server. root, server
yarn start Start either the client or the server. client, server
yarn build Build a production-ready React project. client

Check scripts in each package.json and see that all the commands above come from there and there is more!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.