Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andre2l2/upload-file-example

This is an example for help you to upload images
https://github.com/andre2l2/upload-file-example

expresss file file-upload filesystem node typescript

Last synced: about 2 months ago
JSON representation

This is an example for help you to upload images

Awesome Lists containing this project

README

        


Upload File Example



## :art: About

This is a project for help me. How I upload file with FileReader api, and this help you this too.

## :rocket: How to run?

Has two ways run this project, one with docker and two with node local.

### Run with docker

```bash
docker build -t file-example .
```

### Run with local node

#### Step one

```bash
npm install
```

#### Step two

```bash
npm run start:dev
```

#### Step three

Open index.html file into the **public** > **index.html** and send a file

## How to build this project?

If you want build this poject you can run:

```bash
npm run build
```

After you build, was created a dist directory, and you can run with node.js.