Backend created for HylibCMS in NodeJS
Open you bash and use npm install or yarn install to install the packages
npm install
config/default.json
has all hotel settingssrc/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
config/default.json
"defaultLanguage": "en", //options: en,pt,es
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:
After doing proxy, run this command for the server to start
npm run start
- Laxus