From dc734c1f1e4e4a7a244a36b1d19140f764aa89b1 Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Mon, 25 Apr 2022 01:38:08 +0300 Subject: [PATCH] Dotfiles and repo configuration --- .dockerignore | 1 - .github/FUNDING.yml | 1 - .travis.yml | 14 -------------- LICENSE | 2 +- README.md | 40 +++++++++------------------------------- package-lock.json | 4 ++-- package.json | 42 +++++++----------------------------------- 7 files changed, 19 insertions(+), 85 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .travis.yml diff --git a/.dockerignore b/.dockerignore index 1230510..9cfbeae 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,7 +4,6 @@ .npmignore .eslintignore .editorconfig -.travis.yml test node_modules LICENSE diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index e6f64b9..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -patreon: tshemsedinov diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index da35ffb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js -node_js: - - 14 - - 16 - - 17 -services: - - postgresql - - redis-server -before_script: - - psql -f db/install.sql -U postgres - - PGPASSWORD=marcus psql -d application -f db/structure.sql -U marcus - - PGPASSWORD=marcus psql -d application -f db/data.sql -U marcus -script: - - npm test diff --git a/LICENSE b/LICENSE index ce41cfe..fd6c290 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2022 Metarhia contributors +Copyright (c) 2022 B-OS and Metarhia contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a627c18..dd44b80 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,12 @@ -# Metarhia Example Server for Node.js +# B-OS Demo Application -[![travis](https://travis-ci.org/metarhia/impress.svg?branch=master)](https://travis-ci.org/metarhia/Example) -[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/metarhia/Example/blob/master/LICENSE) +- Technology stack: Node.js, Metarhia +- Database management system: PostgreSQL +- Frontend stack: vanilla.js -## Concept - -This is a logical continuation of -[Node.js Starter Kit](https://github.com/HowProgrammingWorks/NodejsStarterKit) -from [How Programming Works](https://github.com/HowProgrammingWorks) software -development course moving all system code to dependencies, namely using -[Metarhia technology stack](https://github.com/metarhia). - -You can begin development from this starter kit but having in mind future -production deployment and further moving application to -[Metaserverless cloud](https://github.com/Metaserverless) based on Metarhia -technology stack and Node.js. +[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/b-os-tech/Demo/blob/master/LICENSE) -The purpose of this starter kit is to show best practices for Metarhia and -Metaserverless, to give structure and architecture example, to illustrate -simplicity and efficiency of mentioned technologies. - -All parts of this implementation are optimized for reliability, scalability, -performance and security. So if you need readability and want to study code, -let's start with -[Node.js Starter Kit](https://github.com/HowProgrammingWorks/NodejsStarterKit). +## Concept ## Feature list @@ -50,20 +33,15 @@ let's start with ## Usage -- You need node.js v12.5.0 or later (v14 prefered) -- Fork and clone this repository (optionally subscribe to repo changes) +- You need node.js v14 or later (v16 prefered) +- Clone this repository (optionally subscribe to repo changes) - Run `npm i` to install dependencies and generate RSA certificate -- Remove unneeded dependencies if your project doesn't require them -- Add your license to `LICENSE` file but don't remove starter kit license -- Start your project modifying this starter kit - Before running server initialize the DB: - First of all, make sure you have PostgreSQL installed (prefer 12.x). - Run database initialization script: `db/setup.sh` - Run project: `node server.js` and stop with Ctrl+C -- Ask questions in https://t.me/nodeua and post issues on - [github](https://github.com/HowProgrammingWorks/NodejsStarterKit/issues) ## License -Copyright (c) 2020-2022 Metarhia contributors. +Copyright (c) 2022 B-OS and Metarhia contributors. This starter kit is [MIT licensed](./LICENSE). diff --git a/package-lock.json b/package-lock.json index 53a94fe..56d00aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "metarhia", - "version": "2.0.1", + "name": "b-os-demo", + "version": "0.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5d69b2a..b675703 100644 --- a/package.json +++ b/package.json @@ -1,45 +1,17 @@ { - "name": "metarhia", - "version": "2.0.1", + "name": "b-os-demo", + "version": "0.1.0", "author": "Timur Shemsedinov ", - "description": "Metarhia Application Example", + "description": "B-OS Demo Application", "license": "MIT", - "keywords": [ - "metarhia", - "starter", - "kit", - "cloud", - "impress", - "nodejs", - "example", - "websocket", - "api", - "application", - "server", - "rpc", - "soa", - "service", - "stateful", - "rest", - "restful", - "web", - "framework", - "router", - "routing", - "cluster", - "cache", - "http", - "https", - "websockets" - ], "repository": { "type": "git", - "url": "https://github.com/metarhia/Example" + "url": "https://github.com/b-os-tech/Demo" }, "bugs": { - "url": "https://github.com/metarhia/Example/issues" + "url": "https://github.com/b-os-tech/Demo/issues" }, - "homepage": "https://github.com/metarhia/Example", + "homepage": "https://github.com/b-os-tech/Demo", "main": "server.js", "types": "types/global.d.ts", "scripts": { @@ -50,7 +22,7 @@ "db": "metasql c" }, "engines": { - "node": "^12.9 || 14 || 16 || 17" + "node": "14 || 16 || 18" }, "devDependencies": { "@types/node": "^17.0.21",