/ko-architecture

A Minimalist Architecture Pattern for ExpressJS API Applications

Primary LanguageJavaScript

K.O Architecture Demo

  • Framework: ExpressJS
  • Database: MongoDB
  • Authentication: JSON Web Token

Experiment data

APIs document

Postman APIs collection and environment can be imported from ./postman/

Pre-running

Update the ./config.js file

module.exports = {
  saltRounds: 10,
  jwtSecretSalt: '87908798',
  devMongoUrl: 'mongodb://localhost/kane',
  prodMongoUrl: 'mongodb://localhost/kane',
  testMongoUrl: 'mongodb://localhost/test',
}

Import experiment data

Open a terminal and run:

mongod

Open another terminal in this directory:

bash ./data/import.sh

Start the server with

npm start

Start development with

npm run dev