Skip to content

rupachowrasia/node-captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Captcha

Installation

It requires Node.js v8+ to run. Install the dependencies and devDependencies and start the server.

$ git clone https://github.com/rupachowrasia/node-captcha.git
$ cd node-captcha
$ npm install
$ npm start

Screen-shots

Home Page

screenshot from 2018-12-06 10-57-21

Troubleshoot

While npm install you may encounter some error, because captcha module requires canvas as one of its dependency which in turn requires several library to install. Plesae refer this page - https://www.npmjs.com/package/canvas

If your npm install fails, just refer the page above and install pacakges as per your OS type and your are done. Now again do npm install, this time it will not fail. Please note - you don't need to install canvas or captcha module separately, installing packages from link above will work.

I encountered some error during npm install, since I am using ubuntu this command worked for me.

sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

About

A demo how we can use captcha in node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published