This is a simple image storage service, built with Node.js. It uses Express.js as a web framework and PostgreSQL as a database.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repository to your local machine:
git clone https://github.com/andreacw5/asset-storage.git
- Install dependencies:
yarn install
- Start the application:
yarn dev
- Visit
http://localhost:3000
in your browser to use the application.
- Upload images
- Download images
- Delete images
- List images
- Image preview
- Image statistics
- Node.js - JavaScript runtime
- Express.js - Web framework
- PostgreSQL - Database
The authentication is based on single static token, stored on env API_KEY
variable.
Request for create/edit/delete urls need X-API-KEY
header with the value of API_KEY
.
code | description | default value |
---|---|---|
DATABASE_URL | database url | localhost |
API_KEY | auth token for CUD Endpoints | 2342358 |
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details