Skip to content

AlphaTechnolog/skalavel-js-babel-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skalavel JS/Babel/Nodemon Template

A simple skalavel/js/babel/nodemon template to create a scalable web application

NOTE: Skalavel not have very good features (now) such as Middlewares, Views, etc. Skalavel is in development.

Getting started

First clone tht repository:

mkdir ~/repo
cd !$
git clone https://github.com/AlphaTechnolog/skalavel-js-babel-template.git my-awesome-skalavel-app
cd !$

Install the dependencies:

npm install
# or with yarn
yarn

Copy .env.example -> .env

cp -r ./.env.example ./.env

NOTE: Edit the .env you like!

Running the application

To run the application use the build and start command:

npm run build
npm run start

Or if you like all in one command:

npm run build:start

Running the application (for development)

To run the application for development use the dev command, it uses nodemon to hot reloading

npm run dev

Opening the application

To open the application in your browser, check the .env file

cat .env
PORT=8000 # or your configured port

Assuming your port is 8000, open in your browser: localhost:8000

NOTE: The PrintPortTask print the port for you!

Enjoy

Enjoy with this template and skalavel!