Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joaonetogit/api-movie-store
This API offers routes for reading products from a movie store. Implemented in Node.js with Express, the API allows you to consult all products or a specific product, as well as validating access using Basic Authentication. This project is ideal for developers looking for a simple, functional example of a RESTful API with basic authentication.
https://github.com/joaonetogit/api-movie-store
basicauthentication express movies-api nodejs pnpm vercel
Last synced: 7 days ago
JSON representation
This API offers routes for reading products from a movie store. Implemented in Node.js with Express, the API allows you to consult all products or a specific product, as well as validating access using Basic Authentication. This project is ideal for developers looking for a simple, functional example of a RESTful API with basic authentication.
- Host: GitHub
- URL: https://github.com/joaonetogit/api-movie-store
- Owner: joaonetogit
- Created: 2024-05-31T22:23:37.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-11T23:18:15.000Z (4 months ago)
- Last Synced: 2024-07-12T02:10:56.511Z (4 months ago)
- Topics: basicauthentication, express, movies-api, nodejs, pnpm, vercel
- Language: TypeScript
- Homepage: https://api-movie-store.vercel.app
- Size: 4.37 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Movie Store
This is an API for reading products from a movie store, implemented in Node.js with Express. The API allows you to consult all the products or a specific product, as well as validating access using Basic Authentication. The product images are hosted on Amazon S3, ensuring efficient and secure file management.
## Installation
1. Clone this repository:
```bash
git clone https://github.com/joaonetogit/api-movie-store.git
```2. Install the dependencies:
```bash
pnpm install
```## Use
To start the server, run the following command:
```bash
pnpm start
```## Endpoints
### GET /api/login
Returns the authorization token for the next requests
### GET /api/products
Returns all the products in the store.
### GET /api/product/:title
Returns a specific product with the given title.
### GET /api/products/category/:category
Returns products from a specific category