Skip to content

ttelang/MasterClass_NodeJS_URL_Shortner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development

NodeJS Setup

nvm install 14.17.1

Setting up Express Library

Library for creating app servers using nodejs.

Installing Express

npm install express
// server.js
const express = require('express')

const app = express()
app.get('/', (req, res) 
app.listen(4445, () => {
    console.log('Server started on http://localhost:4445')
})

Database Setup

Enter PSQL for Postgres

# Linux 
sudo -u postgres psql 

# Mac 
psql postgres 

Create Database, User and Grant Privilege

Postgres

create database sclrac;
create user sclrac with encrypted password 'sclrac';
grant all privileges on sclrac.* to sclrac;

MySQL

create database sclrac;
create user sclrac identified by 'sclrac';
grant all privileges on sclrac.* to sclrac;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%