https://github.com/autumnchris/file-metadata-api
An Express.js API that takes a submitted file and returns its file name, file type, and file size.
https://github.com/autumnchris/file-metadata-api
api css3 ejs ejs-express express expressjs file-metadata freecodecamp javascript metadata-api metadata-microservice-challenge multer nodejs
Last synced: 20 days ago
JSON representation
An Express.js API that takes a submitted file and returns its file name, file type, and file size.
- Host: GitHub
- URL: https://github.com/autumnchris/file-metadata-api
- Owner: autumnchris
- Created: 2018-10-02T14:33:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T12:57:08.000Z (about 1 year ago)
- Last Synced: 2025-06-06T02:02:41.901Z (11 months ago)
- Topics: api, css3, ejs, ejs-express, express, expressjs, file-metadata, freecodecamp, javascript, metadata-api, metadata-microservice-challenge, multer, nodejs
- Language: CSS
- Homepage: https://autumnchris-file-metadata-api.onrender.com/api
- Size: 253 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Metadata API
An Express.js API that takes a submitted file and returns its file name, file type, and file size.
Inspired by the [File Metadata Microservice challenge](https://learn.freecodecamp.org/apis-and-microservices/apis-and-microservices-projects/file-metadata-microservice) as part of the curriculum for the [Back End Development and APIs Certification](https://www.freecodecamp.org/learn/back-end-development-and-apis) on [freeCodeCamp](https://www.freecodecamp.org).
---
## Built With
* [Express.js](https://expressjs.com)
* [Node.js](https://nodejs.org/en)
* JavaScript
* [EJS](https://ejs.co)
* HTML5
* CSS3
* [Normalize.css](https://necolas.github.io/normalize.css)
* [Google Fonts](https://fonts.google.com)
* [Font Awesome](https://fontawesome.com)
* [nodemon](https://nodemon.io)
## Demo
View project demo at [https://autumnchris-file-metadata-api.onrender.com/api](https://autumnchris-file-metadata-api.onrender.com/api).
## Instructions
After forking and cloning, navigate to the repository in your command line and install the NPM packages:
```
npm install
```
Run the following script in your command line if starting the repository in development mode:
```
npm run dev
```
Run the following script in your command line if starting the repository in production mode:
```
npm start
```
Once the server is running, go to `http://localhost:3000` in your browser.