Skip to content

About

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

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages