Skip to content

alexremus26/Cinemania

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cinemania

Cinemania is now structured as a Node.js + Express application with EJS templates.

Run

  1. Install dependencies:
npm install
  1. Initialize the database (requires PostgreSQL):
# IMPORTANT: If you are using WSL, you must start the PostgreSQL service first:
sudo service postgresql start

# Then run the initialization script:
sudo -u postgres psql -f db_setup.sql

# On Windows/macOS (using pgAdmin or Postico):
# Connect to your local server and execute the contents of db_setup.sql
  1. Start server:
npm start
  1. Open in browser:
http://localhost:8080

Project Structure

  • index.js - Express server entrypoint
  • views/pagini/index.ejs - main homepage template
  • views/fragmente/head.ejs - reusable head section
  • views/fragmente/header.ejs - reusable header/navigation section
  • views/fragmente/footer.ejs - reusable footer section
  • resurse/ - static assets served by Express

Static Assets

Express serves static files from resurse using server-style absolute paths:

  • /resurse/stiluri/... for CSS
  • /resurse/imagini/... for images and favicons
  • /resurse/documente/... for PDF and downloadable files

All resource references in EJS pages should use absolute URLs (for example /resurse/stiluri/general.css) and not relative paths.

About

Website for a cinema

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors