Giter Site home page Giter Site logo

coder-hxl / airbnb-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 8.98 MB

Airbnb-API 是基于 NodeJS、TypeScript 、Koa、MySQL、x-crawl 等技术实现的 Airbnb API 。拥有房源搜索、地区房源、更多地区房源、房源详情、个人信息的 API ,采用 REST 设计风格。

Home Page: http://47.113.218.204:9001

JavaScript 1.56% TypeScript 98.44%

airbnb-api's Introduction

Airbnb-API

Airbnb-API 是基于 NodeJS、TypeScript 、Koa、MySQL、x-crawl 等技术实现的 Airbnb API 。拥有房源搜索、地区房源、更多地区房源、房源详情、个人信息的 API ,采用 REST 设计风格。

如果对您有帮助,可以给 Airbnb-API 存储库 点个 star 支持一下!

技术栈

NodeJS TypeScript MySQL Koa Esbuild jsonwebtoken Dotenv x-crawl

API 文档

API 文档: https://documenter.getpostman.com/view/19782726/2s8Z6yWsaF

如何运行

  1. 没有 pnpm ?

    npm install pnpm -g
  2. 安装依赖(运行完该命令就可以进入步骤 3)

    pnpm add .
  3. 在 MySQL 创建一个名为 airbnb 的数据库,然后将 database/airbnb .sql 文件导入进去

  4. 配置 .env 文件

    APP_HOST=http://localhost # 项目运行的主机
    APP_PORT=9001 # 项目运行的端口号
    
    MYSQL_HOST=localhost # MySQL 运行的主机
    MYSQL_PORT=3306 # MySQL 运行的端口号
    MYSQL_USER=root # MySQL 用户名
    MYSQL_PASSWORD=root # MySQL 密码
    MYSQL_DATABASE=airbnb # MySQL 数据库名称
    
    # 无 upload 文件可以使用 github 图床
    # 注意: 如果使用到 上传图片文件接口 时, 建议设置为 false , 否则图片文件还是会从 github 图床获取
    USE_GITHUB_REP=true  # Value: true / flase
  5. 启动

    pnpm start

前端

Airbnb Github 地址: https://github.com/coder-hxl/airbnb

Airbnb Gitee 地址: https://gitee.com/coderhxl/airbnb

airbnb-api's People

Contributors

coder-hxl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

coderfeiwu

airbnb-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.