Help us shape the future of Go! Take the 2026 Go Developer Survey

crawler-api

command module
v0.0.0-...-f3b6af7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

README

crawler-api

This is rest api for crawler project

Running Locally with Docker Compose

Prerequisites

Steps

  1. Clone the repository:

    git clone <your-repo-url>
    cd crawler-api
    
  2. Build and start the services:

    docker-compose up --build
    

    This will build the Go application, start a MySQL database, and import the initial data from db/mysql.sql.

  3. Access the API:

    • The API will be available at: http://localhost:8080
    • MySQL will be available at port 13306 on your host (if you mapped it), or 3306 by default.
  4. Stopping the services: Press Ctrl+C in the terminal, or run:

    docker-compose down
    

Notes

  • The backend will wait for the database to be ready before starting.
  • Update conf/config.yml if you change database credentials or ports.
  • For frontend development, ensure CORS is configured for your frontend's origin in main.go.
  • User name: admin@skyell.com Password: 1234567

Replace <your-repo-url> with your actual GitHub repository URL.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL