Skip to content

backend server of Hylib made in NodeJS using Sequelize and MySQL. Join the community on Discord!

Notifications You must be signed in to change notification settings

lucasbarbosaz/HylibServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.json has all hotel settings
  • src/config/auth.json to generate the JWT type tokens
  • /.env put 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

About

backend server of Hylib made in NodeJS using Sequelize and MySQL. Join the community on Discord!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published