短網址產生器
- Node.js
- Express
- Express-handlebars
- nodemon
- MongoDB
- Mongoose
- body-parser
- and many other Javascript framework
首頁畫面上有一個表單,使用者可以在表單輸入原始網址,如 https://www.google.com;送出表單之後,畫面會回傳格式化後的短網址,如 https://your-project-name.herokuapp.com/6y7UP
Clone repository to your local computer
$ git clone https://https://github.com/derek800109/url-shortener.git
Install by npm
$ npm install
Use seed data
npm run seed
Execute
$ npm run dev
Terminal show the message
Express is listening on localhost:3000
mongodb connected!
Now you can browse the website on
http://localhost:3000
- Node.js: 10.22.0
- Express: 6.14.8
- Express-Handlebars: 4.0.3
- body-parser: 6.14.8
- mongoDB Community Server: 4.2.9
- mongoose: 5.10.3
Derek Hsu