Coder Social home page Coder Social logo

imagehosting's Introduction

图片托管 Web 应用

这是一个简单的网络应用程序,用于托管和分享图片。用户可以安全地上传图片,为其设置密码,并与他人分享链接。上传的图片将安全地存储在服务器的文件系统中,并使用 SQLite 数据库管理其信息。

特别注意此项目屏蔽华为,低配高价虚假宣传出问题别人背锅的手机不要在我面前跳

特点

  • 安全上传图片。
  • 为上传的图片设置密码。
  • 与他人分享图片链接。
  • 使用提供的密码查看图片。
  • 适用于移动设备和桌面设备的响应式设计。

使用的技术

  • Node.js
  • Express.js
  • SQLite
  • Multer(用于文件上传)
  • Bcrypt(用于密码哈希)
  • EJS(用于服务器端 HTML 渲染)
  • HTML/CSS(用于前端样式)

安装

  1. 克隆存储库:
git clone https://github.com/wanderer-fly/ImageHosting.git
  1. 安装依赖项:
cd ImageHosting
npm install
  1. 设置环境变量:

在项目根目录创建一个 .env 文件,并添加以下变量:

PORT=3000
BASE_URL=http://localhost:3000
  1. 启动服务器:
npm start
  1. 在您的网络浏览器中打开 http://localhost:3000,以访问应用程序。

使用方法

  1. 上传图片:
    • 点击“上传图片”按钮。
    • 从计算机中选择图片文件。
    • 可选地为图片设置密码。
    • 单击“上传”按钮。

imagehosting's People

Contributors

wanderer-fly avatar

Watchers

 avatar

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.