neobyvatel / aitu_backend_final_project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  • Clone the repository git clone https://github.com/neobyvatel/aitu_backend_final_project
  • Enter the folder cd backend
  • Install dependencies npm i
  • Run the server using dev script npm run dev

Used npm dependencies

  • express - Easy and Fast JavaScript framework
  • express-session - Sessions with express js
  • bcrypt - A library to hash passwords
  • nodemon - Automatically restarts the node application when file changes (developers dependency)
  • axios - A promise-based HTTP library
  • body-parser - NodeJS body parsing middleware
  • ejs - Embedded JavaScript templates
  • mongoose - Mongoose is a MongoDB object modeling tool that supports Node.js

Resources Used

APIs

1. Get Cryptocurrency Listings

  • Description: Fetches the latest cryptocurrency listings including name, symbol, price, market cap, volume, and percent change.
  • Endpoint: /listings
  • Method: GET

2. Get Cryptocurrency Info by Ticker

  • Description: Fetches detailed information about a cryptocurrency based on its ticker symbol.
  • Endpoint: /crypto
  • Method: POST
  • Parameters:
    • ticker: Symbol of the cryptocurrency

3. Get Stock Info by Ticker

  • Description: Fetches information about a stock based on its ticker symbol.
  • Endpoint: /stocks
  • Method: POST
  • Parameters:
    • ticker: Symbol of the stock

4. Get Last Trade

  • Description: Fetches the last trade information for a given stock.
  • Endpoint: /stocks/lastTrade
  • Method: POST
  • Parameters:
    • ticker: Symbol of the stock

5. Get News

  • Description: Fetches news articles related to a given keyword.
  • Endpoint: /news
  • Method: GET
  • Parameters:
    • keyword: Keyword to search for news articles

Admin account data

About


Languages

Language:EJS 70.0%Language:JavaScript 30.0%Language:CSS 0.0%