Skip to content

enzonun/koajs-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koajs-rest-api

Example of NodeJS Koa framework + Postgres as RDBMS

Tech stack

Project specific

  • Using bcrypt for encrypt passwords
  • Basic-Auth based flow

Installation

Software you must have installed on your system

  • NodeJS 14+
  • npm
  • nodemon for auto reload ( npm i -g nodemon )

Install Dependencies

npm install

Create postgresql database with the following name - (change credentials on the config.js file if you need)

sampledb

Run

npm run start:dev

For insert initial data, execute this function on server.js

initialdata.insertAllData();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published