A NestJS-based backend application for crawling and managing blog content, integrated with Supabase for authentication and PostgreSQL via TypeORM for data persistence.
BlogCrawler is a server-side application built with NestJS, designed to crawl and manage blog posts. It leverages TypeORM for database interactions with PostgreSQL and integrates with Supabase for user authentication. The project is structured to provide a robust backend for applications requiring content management and user authentication features.
class-validator, class-transformer, rxjs, reflect-metadataClone the repository:
git clone https://github.com/phambaophuc/BlogCrawler.git
cd BlogCrawler
Install dependencies:
npm install
Set up environment variables:
Create a .env file in the root directory and populate it with your database and Supabase credentials:
# .env
APP_PORT=3000
NODE_ENV=development
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=your_db_username
DB_PASSWORD=your_db_password
DB_DATABASE=your_db_name
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
Once installed and configured, you can start the application:
Development (with watch mode):
npm run start:dev
Production:
First, build the project:
npm run build
Then, run the production server:
npm run start:prod
This project serves as a backend API for blog-related functionalities. It can be used to power a frontend blog application that requires:
Developers can integrate this backend API into their frontend projects (e.g., using React, Vue, Angular) to build a complete blogging platform.
This project is licensed under the MIT License - see the LICENSE file for details.
© 2023 BlogCrawler. All rights reserved.
Feel free to fork, star ⭐, and open issues if you encounter any problems or have suggestions!