Skip to content

philipvella/getFonts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get fonts

Description 📝

getFonts is a Node.js project that demonstrates how to fetch fonts using the Express framework and the Axios library. It provides a basic server that serves font files in response to specific routes.

localhost result

Installation 🚀

To install and run the getFonts project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/philipvella/getFonts.git
  2. Change into the project directory:

    cd getFonts
  3. Install the dependencies:

    npm install

Usage 🎯

To start the server and fetch fonts, use the following command:

npm start

The server will start and listen on the default port (3000).

Configuration ⚙️

The getFonts project uses the following configuration file:

package.json

{
  "name": "getFonts",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "node server.js"
  },
  "author": "info@vellaphilip.com",
  "license": "ISC",
  "dependencies": {
    "axios": "^1.4.0",
    "express": "^4.18.2"
  }
}

Routes 🛣️

The following routes are available in the getFonts project:

  • GET /load-font: Fetches and serves the font file.

Dependencies 📦

The getFonts project relies on the following dependencies:

  • Express: Fast, unopinionated, minimalist web framework for Node.js.
  • Axios: Promise-based HTTP client for the browser and Node.js.

License 📄

This project is licensed under the ISC License. See the LICENSE file for more information.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published