Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andre2l2/upload-file-example
- Owner: andre2l2
- License: mit
- Created: 2022-09-04T18:13:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T23:41:26.000Z (6 months ago)
- Last Synced: 2024-07-16T03:24:26.925Z (6 months ago)
- Topics: expresss, file, file-upload, filesystem, node, typescript
- Language: TypeScript
- Homepage:
- Size: 394 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.