mul14 / simple-demo-node-login-token

(SERVER APP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Demo REST login with token (Backend)

Prepare

Update .env file based on your MySQL settings.

Use this table schema

CREATE TABLE `users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(255) NOT NULL DEFAULT '',
  `password` varchar(255) NOT NULL DEFAULT '',
  `token` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Start the application with npm start.

About

(SERVER APP)


Languages

Language:JavaScript 100.0%