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.
- 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
- Backend: Node.js, Express.js
- Database: PostgreSQL (Supabase)
- ORM: TypeORM
- Authentication: JWT, bcrypt, cookies
- Security: CORS
- Frontend: Stock Bot Client (React.js)
- Prediction Model: Stock Bot Prediction Server (Python)
- Clone the repository:
git clone https://github.com/Hassam-01/stock_bot_web_server.git
- Navigate to the project folder:
cd stock_bot_web_server - Install dependencies:
npm install
- Set up environment variables in a
.envfile:DATABASE_URL=your_supabase_database_url API_KEY=your_api_key
- Start the server:
npm run dev
- The server runs on
http://localhost:5000by default. - Use API endpoints for authentication, user management, and stock trading interactions.
- Ensure that your frontend communicates with the backend via proper CORS policies.
For any questions or collaborations, feel free to reach out!