Beat - %BEAT%
Server framework for your Node.js projects made with Express, Firebase and ReactDOM to server rendering.
Features
- No styling at all, this is a completely bare containing only the essential things you need
- A solid MVC architecture implementation
- Cron functions to execute code in intervals
- Cached functions to save concurrent data, you can upgrade to Redis.
- CLI tool to quicly create new views and API routes.
- ReactDOM to server rendering views with Express.js
- Vue.js to implement in client side
- Strong validations to prevent code-vulnerabilities
- Authentication middlewares
- Cookies management
- Tons of utilities to cypher data, search, handle responses, generate automatic IDs and so on
- Own logs management to handle errors or queue messages
- Possibility to change SQL engine
- Easy-code to newbies devs
- Isolated core code to be upgraded more easily
- It's flexible, implement any architecture, database or change every thing you need.
Create project
Step 1. Install beat-cli to easily manage files and project
npm install -g beat-cli
Step 2. Create a project with cli tool and follow instructions
beat-cli new-project name-of-project
Install dependencies
Step 1. Install the npm dependencies
npm install
Create new frontend view
beat-cli new-view
Create new API controllers
beat-cli new-api
Are you not decided? select an option what you want and follow instructions.
beat-cli new
Docker PostgreSQL
Download the official postgres image
docker pull postgres
Run and start the image:
docker run -d -e POSTGRES_USER=myuser -e POSTGRES_PASSWORD=password123 --name postgresdb -p 5432:5432 --restart=always postgres docker start postgresdb
Check if image is running
docker ps
Execute postgres
docker exec -it postgresdb psql -U postgres
psql commands summary
Task Psql command Close conection \q Connect to a database \c base_datos List databases \l Show table definition including triggers \d table Listar Schemas \dn List functions \df List views \dv Show function SQL code \df+ __function Pretty-format \x
Remove SSL redirection on stages
https://www.anhsblog.com/make-chrome-stop-redirect-from-http-to-https/#.XpAGD6FoeMo
Create empty file CMD Kudu
copy nul "default.json"
Documentation
For all docs you need go to Wiki in this project.
License
The code is available under the GNU GENERAL PUBLIC LICENSE.