Skip to content

Node.js image gallery with user authentication (PostgreSQL and Passport.js) + EJS for views

Notifications You must be signed in to change notification settings

szymslo/image-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The aim of the project is to allow the photographer to create photo gallery for each client. Each gallery is visible only to the customer after entering the appropriate password.

If the administrator logs in, he has an option to add photos for a given client. When the client logs in he has preview of his photos.


gallery

Requirements

This app requires PostgreSQL database installed locally. You can get it here: https://www.postgresql.org/download/
After installation create database and tables (SQL commands provided in database.sql file), and run PostgreSQL service.

Environment Variables

Create .env file in the project directory with your database credentials. It shoud look like this:

DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT=
DB_DATABASE=
SESSION_SECRET=

To run this app

npm install

npm start / yarn start

About

Node.js image gallery with user authentication (PostgreSQL and Passport.js) + EJS for views

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published