All Projects → waylau → Mongodb File Server

waylau / Mongodb File Server

Licence: mit
MongoDB File Server is a file server system based on MongoDB. 基于 MongoDB 的文件服务器。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Mongodb File Server

Spring Boot Leaning
Spring Boot 2.X 最全课程代码
Stars: ✭ 2,008 (+585.32%)
Mutual labels:  mongodb, spring-boot, thymeleaf
Springbootunity
rabbitmq、redis、scheduled、socket、mongodb、Swagger2、spring data jpa、Thymeleaf、freemarker etc. (muti module spring boot project) (with spring boot framework,different bussiness scence with different technology。)
Stars: ✭ 845 (+188.4%)
Mutual labels:  mongodb, spring-boot, thymeleaf
Spring Boot Examples
about learning Spring Boot via examples. Spring Boot 教程、技术栈示例代码,快速简单上手教程。
Stars: ✭ 26,812 (+9050.85%)
Mutual labels:  mongodb, spring-boot, thymeleaf
Spring Boot Enterprise Application Development
Spring Boot Enterprise Application Development.《Spring Boot 企业级应用开发实战》
Stars: ✭ 261 (-10.92%)
Mutual labels:  mongodb, spring-boot, thymeleaf
Webfluxtemplate
Spring Webflux template application with working Spring Security, Web-sockets, Rest, Web MVC, and Authentication with JWT.
Stars: ✭ 107 (-63.48%)
Mutual labels:  mongodb, spring-boot
Spring Boot 2.x Examples
Spring Boot 2.x code examples
Stars: ✭ 104 (-64.51%)
Mutual labels:  mongodb, spring-boot
Spring Webmvc Pac4j
Security library for Spring Web MVC: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 110 (-62.46%)
Mutual labels:  mongodb, spring-boot
Smconf
简单,集中,分布式的配置管理
Stars: ✭ 120 (-59.04%)
Mutual labels:  mongodb, spring-boot
Spring Boot Mongodb Angular Todo App
A Sample App built using Spring Boot, Angular and MongoDB
Stars: ✭ 84 (-71.33%)
Mutual labels:  mongodb, spring-boot
Kkbinlog
支持mysql、MongoDB数据变更订阅分发
Stars: ✭ 112 (-61.77%)
Mutual labels:  mongodb, spring-boot
My Moments
Instagram Clone - Cloning Instagram for learning purpose
Stars: ✭ 140 (-52.22%)
Mutual labels:  mongodb, spring-boot
Springboot Templates
springboot和dubbo、netty的集成,redis mongodb的nosql模板, kafka rocketmq rabbit的MQ模板, solr solrcloud elasticsearch查询引擎
Stars: ✭ 100 (-65.87%)
Mutual labels:  mongodb, spring-boot
Easy Notes
🍋 简笔记(easy notes)打造你的轻便私人笔记。接口涉及Spring Security、OAuth2、Jwt、MongoDB,客户端采用 Vue.js 、Ant Design
Stars: ✭ 89 (-69.62%)
Mutual labels:  mongodb, spring-boot
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+18602.05%)
Mutual labels:  mongodb, spring-boot
Spring 5 Examples
This repository is contains spring-boot 2 / spring framework 5 project examples. Using reactive programming model / paradigm and Kotlin
Stars: ✭ 87 (-70.31%)
Mutual labels:  mongodb, spring-boot
Sample Spring Microservices Advanced
More advanced samples of spring boot and spring cloud microservices showing usage of such tools like api Swagger2 on Zuul, integraction with MongoDB, configuration server, testing with Spring Cloud Contract or Hoverfly
Stars: ✭ 112 (-61.77%)
Mutual labels:  mongodb, spring-boot
Blog
MyBlog
Stars: ✭ 197 (-32.76%)
Mutual labels:  mongodb, spring-boot
Springbootlearning
《Spring Boot教程》源码
Stars: ✭ 2,065 (+604.78%)
Mutual labels:  mongodb, spring-boot
Full Reactive Stack
Full Reactive Stack with Spring Boot (WebFlux), MongoDB and Angular
Stars: ✭ 221 (-24.57%)
Mutual labels:  mongodb, spring-boot
Spring Boot Fx
🎈Spring Boot, JavaFX, bootstrap3, mongoDB
Stars: ✭ 57 (-80.55%)
Mutual labels:  mongodb, spring-boot

MongoDB File Server(基于 MongoDB 的文件服务器)

MongoDB File Server is a file server system based on MongoDB. MongoDB File Server is committed to the storage of small files, such as pictures in the blog, ordinary documents and so on.

It's using some very popular technology like:

  • MongoDB 3.6.4
  • Spring Boot 2.0.3.RELEASE
  • Spring Data MongoDB 2.0.8.RELEASE
  • Spring 5.0.7.RELEASE
  • Thymeleaf 3.0.9.RELEASE
  • Thymeleaf Layout Dialect 2.2.0
  • Embedded MongoDB 2.0.2
  • Gradle 4.5.1

基于 MongoDB 的文件服务器。MongoDB File Server 致力于小型文件的存储,比如博客中图片、普通文档等。由于MongoDB 支持多种数据格式的存储,对于二进制的存储自然也是不话下,所以可以很方便的用于存储文件。由于 MongoDB 的 BSON 文档对于数据量大小的限制(每个文档不超过16M),所以本文件服务器主要针对的是小型文件的存储。对于大型文件的存储(比如超过16M),MongoDB 官方已经提供了成熟的产品 GridFS,读者朋友可以自行了解。

本文不会对 MongoDB 的概念、基本用法做过多的介绍,有兴趣的朋友可自行查阅其他文献,比如,笔者所著的《分布式系统常用技术及案例分析》一书,对 MongoDB 方面也有所着墨。

Features 特性

  • Easy to use.(易于使用)
  • RESTful API.
  • Chinese characters friendly.(中文友好)
  • ...

APIs

Here are useful APIs.

  • GET /files/{pageIndex}/{pageSize} : Paging query file list.(分页查询文件列表)
  • GET /files/{id} : Download file.(下载某个文件)
  • GET /view/{id} : View file online.(在线预览某个文件。比如,显示图片)
  • POST /upload : Upload file.(上传文件)
  • DELETE /{id} : Delete file.(删除文件)

How to (如何使用)

It's so easy to start up the MongoDB File Server with 2 steps.

只需要两步。

1. Get source(获取源码)

$ git clone https://github.com/waylau/mongodb-file-server.git

2. Run(运行)

$ gradlew bootRun

then, you can visit the application at http://localhost:8081.

Configuration (配置)

The default configuration is (默认配置如下) :

server.address=localhost
server.port=8081

# Thymeleaf 
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.cache=false
spring.thymeleaf.mode=HTML5

# limit upload file size
spring.servlet.multipart.max-file-size=1024KB
spring.servlet.multipart.max-request-size=1024KB

spring.http.multipart.max-file-size and spring.http.multipart.max-request-size limit upload file never larger than 1MB.

NOTE: default configuration will use a embedded Mongo, that means data will never persist when the MongoDB File Server restart.

You can set spring.data.mongodb.uri property to configure additional settings such as the replica set.(支持配置独立运行的 MongoDB 的连接方式):

spring.data.mongodb.uri=mongodb://user:[email protected]:12345,mongo2.example.com:23456/test

If you want to use a stanlne MongoDB server, comment out Embedded MongoDB dependencies in build.gradle file.(如果需要使用独立运行的 MongoDB,就把下面的依赖注释掉):

dependencies {
	...
	// compile('de.flapdoodle.embed:de.flapdoodle.embed.mongo')
	...
}

Detail (详细设计说明)

See detail https://waylau.com/mogodb-file-server-with-spring-boot.

Host(托管)

Contact 联系作者

Donate 捐赠

Support me!

感谢您对老卫开源工作的支持!

开源捐赠

捐赠所得所有款项将用于开源事业!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].