HylibServer
backend server of Hylib made in NodeJS using Sequelize and MySQL. Join the community on Discord!
Install / Use
/learn @flaviobdev/HylibServerREADME
Hylib Server
Backend created for HylibCMS in NodeJS
Requisites
How to install
Open you bash and use npm install or yarn install to install the packages
npm install
How to configure
config/default.jsonhas all hotel settingssrc/config/auth.jsonto generate the JWT type tokens/.envput data from your database and other settings:
PORT=3333 //port on which the server will listen `localhost:PORT`
DB_HOST=localhost //server ip that finds your mysql
DB_PORT=3306 //mysql port
DB_USERNAME=root //mysql username
DB_PASSWORD= //mysql password
DB_NAME=lella_cms //name database
Set your default language in messages
config/default.json
"defaultLanguage": "en", //options: en,pt,es
Development
To make changes, launch it with developer mode to apply changes after saving.
npm run start:dev
You will need to create a reverse proxy using the web server you use for the port your backend server is running on. example: ip:3333 for api.hotel.com
Examples:
Production
After doing proxy, run this command for the server to start
npm run start
Developers
- Laxus
