Skip to content

Hassam-01/stock_bot_web_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Bot - Server (Node.js)

Overview

The Stock Bot Server is a backend application built with Node.js and Express.js. It is responsible for handling authentication, managing database connections, and securing user data. The server integrates with a PostgreSQL database hosted on Supabase and leverages TypeORM for efficient data management.

Features

  • User Authentication:
    • JWT token-based authentication
    • Secure password storage using bcrypt hashing
    • Cookie-based session management
  • Database Integration:
    • PostgreSQL hosted on Supabase
    • ORM using TypeORM
  • Security & Middleware:
    • CORS enabled for secure cross-origin requests
    • Secure user authentication with JWT and cookies

Tech Stack

  • Backend: Node.js, Express.js
  • Database: PostgreSQL (Supabase)
  • ORM: TypeORM
  • Authentication: JWT, bcrypt, cookies
  • Security: CORS

Related Projects

Installation

  1. Clone the repository:
    git clone https://github.com/Hassam-01/stock_bot_web_server.git
  2. Navigate to the project folder:
    cd stock_bot_web_server
  3. Install dependencies:
    npm install
  4. Set up environment variables in a .env file:
    DATABASE_URL=your_supabase_database_url
    API_KEY=your_api_key
  5. Start the server:
    npm run dev

Usage

  • The server runs on http://localhost:5000 by default.
  • Use API endpoints for authentication, user management, and stock trading interactions.
  • Ensure that your frontend communicates with the backend via proper CORS policies.

Connect

For any questions or collaborations, feel free to reach out!

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors