- 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
- 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
- Bootstrap 5 CSS - CSS framework for styling
- Font Awesome - Icon library for web projects
- Google Fonts (Poppins) - Font family used in the project
- SweetAlerts 2 - Library for more intuitive alert boxes
- Popper JS - Tooltip & popover positioning engine
- jQuery - JavaScript library for DOM manipulation and event handling
- Description: Fetches the latest cryptocurrency listings including name, symbol, price, market cap, volume, and percent change.
- Endpoint:
/listings
- Method: GET
- Description: Fetches detailed information about a cryptocurrency based on its ticker symbol.
- Endpoint:
/crypto
- Method: POST
- Parameters:
ticker
: Symbol of the cryptocurrency
- Description: Fetches information about a stock based on its ticker symbol.
- Endpoint:
/stocks
- Method: POST
- Parameters:
ticker
: Symbol of the stock
- Description: Fetches the last trade information for a given stock.
- Endpoint:
/stocks/lastTrade
- Method: POST
- Parameters:
ticker
: Symbol of the stock
- Description: Fetches news articles related to a given keyword.
- Endpoint:
/news
- Method: GET
- Parameters:
keyword
: Keyword to search for news articles
- login: admin
- email: admin@example.com
- password: admin123