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.
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!
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
To run the application for development use the dev
command, it uses
nodemon to hot reloading
npm run dev
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 with this template and skalavel!