Skip to content

Simple photo gallery created with S3, React and Nodejs

Notifications You must be signed in to change notification settings

gnwx/photo-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Photo Gallery

Simple photo gallery created with Nodejs, MongoDB and S3 Bucket.

Development

To set up and run the development environment, follow these steps:

1- Clone the repository:

git clone https://github.com/gnwx/photo-gallery.git

2- Navigate to the project directory and install dependencies:

cd photo-gallery && npm install

3- Edit the .env files in the client and server folders. Provide the necessary configuration values:

client/.env example:

VITE_BASE_URL="http://localhost:4000/api/"

server/.env example:

PORT=4000
MONGODB_URI="mongodb+srv://<username>:<password>@<projectName>/?retryWrites=true&w=majority"
JWT_SECRET="<yourSecret>"


AWS_ACCESS_KEY_ID="<yourAccessKey>"
AWS_ACCESS_KEY_SECRET="<yourSecretKey>"
AWS_BUCKET_NAME="<yourS3BucketName>"
AWS_REGION="<yourRegion>"

Replace username, password, projectName, yourSecret, yourAccessKey, yourSecretKey, yourS3BucketName, and yourRegion with the appropriate values.

4- Once the .env files are configured, run the following command in separate terminals to start the client and server:

// In the client directory
npm run dev

// In the server directory
npm run dev

About

Simple photo gallery created with S3, React and Nodejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published