This sample application demonstrates the following technologies.
- hapi - a wonderful Node.js application framework
- PostgreSQL - a popular relational database
- Postgres - a new PostgreSQL client for Node.js
- Vue.js - a popular front-end library
- Bulma - a great CSS framework based on Flexbox
- EJS - a great template library for server-side HTML templates
Requirements: π π
- Node.js 12.x or higher
- PostgreSQL (can be installed locally using Docker)
- Free Okta developer account for account registration, login
- Clone or download source files
- Run
npm install
to install dependencies - If you don't already have PostgreSQL, set up using Docker
- Create a free Okta developer account and add a web application for this app
- Copy
.env.sample
to.env
and change theOKTA_*
values to your application - Initialize the PostgreSQL database by running
npm run initdb
- Run
npm run dev
to start Node.js
The associated blog post goes into more detail on how to set up PostgreSQL with Docker and how to configure your Okta account.
- $ sudo apt update
- $ sudo apt install software-properties-common
- $ sudo add-apt-repository --yes --update ppa:ansible/ansible
- $ sudo apt install ansible
- $ sudo nano /etc/ansible/hosts
- add the webservers with their ip privates
- $ ansible-inventory --list -y
- $ ssh-keygen
- $ ssh-copy-id -i ~/.ssh/id_rsa.pub user@privateip
- $ ansible all -m ping -u username
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" $file = "$env:temp\ConfigureRemotingForAnsible.ps1"
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
powershell.exe -ExecutionPolicy ByPass -File $file
##-------------------
winrm enumerate winrm/config/Listener
##-------------------
pip install "pywinrm>=0.3.0"
- The deferent between the staging and the production ... I've resize the VM (bigger).