GithubHelp home page GithubHelp logo

kekewind / linker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yankaics/linker

0.0 0.0 0.0 444 KB

长链接转短链接的服务器,基于nodejs开发,能够容纳1000万个长链接进行转换为四位短链接

JavaScript 77.50% CSS 7.32% HTML 15.19%

linker's Introduction

#Linker

使用方法

npm install  
npm start

配置文件

目录路径 lib/conf/config.js

module.exports = {
	web: {
		port: 8080, // 设置服务器使用的端口号
		public: '/../public'  // 设置静态文件目录,这个项目这里不要动!!!
	},
	memcached: {
		host: '192.168.221.130', // 设置memcached地址,目前没有支持分布式的缓存服务器
		port: '11211', // 设置端口
		cacheTimeout: 1000 // 设置缓存超时
	},
	mysql: {
		host: '192.168.221.130', // 设置MySql地址
		user: 'root', // 设置MySql用户名
		port: '3306', // 设置MySql端口号
		password: '123456', // 设置MySql密码
		database: 'link' // 设置MySql数据库
	},
	md5: {
		key: 'vincent' // 进行md5加密时使用的密钥
	}
};

数据库脚本

已包含了一些测试数据

目录路径 /db/Link.sql

linker's People

Contributors

vincent-zheng 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.