This is a server-side API for managing a photo gallery.
- Create, read, update, and delete albums and photos.
- Associate photos with albums.
- Retrieve information about albums and photos.
- Node.js
- npm
To get the API up and running on your local machine, follow these steps:
git clone https://github.com/BishoySedra/Photo_Gallery_API.git
cd Photo_Gallery_API
-
Rename the provided
.example.env
file to.env
. -
Open the
.env
file. -
Add your credentials and sensitive information in the corresponding fields.
PORT=your_port DATABASE_NAME=your_database_name DATABASE_USERNAME=your_database_username DATABASE_PASSWORD=your_database_password DATABASE_HOST=your_host
Make sure to replace the placeholder values (
your_database_name
,your_database_username
, etc.) with your actual credentials.This
.env
file will be used by your application to access the required environment variables. Remember to keep this file private and not share it publicly, as it contains sensitive information.
npm install
npm start
The server will start, and you'll be able to access the API at http://localhost:3000
even if you don't put your put in the credentials as I mentioned above.
For detailed information on available endpoints, request/response formats, and usage examples, refer to the API Documentation.