8000 GitHub - FoxPatrol/post-mini
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FoxPatrol/post-mini

Repository files navigation

Post Mini

Project Overview

This project was generated with Angular CLI version 17.0.9.

The project aims to build an API requester tool, that does not require a user to be authenticated to use.

The primary goal of this project is to explore the latest features and enhancements introduced in Angular 17, and staying current to the latest trends.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Styling

For styling, it uses TailwindCSS and Angular Material.

For icons, it uses both icons from Angular Material Icons and FontAwesome. A List of Angular Material Icons (non-official) is here linked for your use.

How to use TailwindCSS

TailwindCSS can be configured via the file tailwindcss.config.js. To use, visit the docs and use its classes directly in html elements, as so:

<div class="flex flex-row gap-2">
  <div class="bg-yellow-100 w-12 h-12"></div>
  <div class="bg-yellow-200 w-12 h-12"></div>
  <div class="bg-yellow-300 w-12 h-12"></div>
  <div class="bg-yellow-400 w-12 h-12"></div>
  <div class="bg-yellow-500 w-12 h-12"></div>
  <div class="bg-yellow-600 w-12 h-12"></div>
  <div class="bg-yellow-700 w-12 h-12"></div>
  <div class="bg-yellow-800 w-12 h-12"></div>
  <div class="bg-yellow-900 w-12 h-12"></div>
</div>

How to use Angular Material

Angular material is installed via the npm i command like any other package. To start using it on the codebase, visit the documentation to see which components are available and how to go about their implementation.

Then, import the modules in your angular component and add them to the imports array.

You are set! Use directly in the template as so:

<mat-card>
  <mat-card-header>
    <mat-card-title>Card Title</mat-card-title>
    <mat-card-subtitle>Some interesting information that describes the card</mat-card-subtitle>
  </mat-card-header>
  <mat-card-content> Content of the card </mat-card-content>
  <mat-card-actions>
    <button mat-raised-button color="primary">Click me!</button>
  </mat-card-actions>
</mat-card>

Request source

To test requests, an endpoint must be requested. For this, a variety of sources can be used. These are some of the readily available:

Json placeholder available for free use online Json server npm package

Testing

Run npm run test to execute unit tests via Jest.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0