1.2.10-alpha • Published 2 years ago

react-dang v1.2.10-alpha

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

react-dang


React basic application.

Index of Contents


Description


The ReactDang Application is a npmjs package that will initialize a Basic React Web Application having two default pages to start working with.
Home page and a Contacts page.

It uses:

  • Babel under the hood to compile the React Application.
  • eslint for linting.
  • It spins up webpack with two default configurations:

    • Development -> It builds the javascript specifically for webpack devServer.
    • Production -> It builds the app with some performance improvements.
    • Use Koorie just with Production configuration because it doesn't support webpack Hot Module Replacement with Development configuration.

Available Components for react basic application:

  • Header -> Handles the header shared between the web application pages.
  • Links -> Handles the available links of the web application. It is imported in the Header.
  • Index -> Handles the Home Page.
  • Contacts -> Handles the Contacts Page.
  • ContactForm -> Basic contact form. It is imported in the Contacts.
  • Footer -> Handles the footer shared between the web application pages.

React Dang install @react-dang/app under the hood. you can browse the code at GitHub.


Usage

React Dang is very simple to use.

  1. from your current working directory
mkdir my-project && cd my-project
  1. Once inside the just made directory.
# You'll be asked to confirm the use of the --bare flag
npx react-dang install --bare --name=my-project \
  --git \
  --author='Your Name' \
  --license='MIT' \
  --version='1.0.0' \
  --description='My Project does this and that'
  1. the output should look like this.
# react-dang ready to go

  already in the project root directory
  
  npm run build-prod
  
  npm run koorie
  

after running 'npm run koorie' command the output should look like this ⬇

> my-project@1.0.0 koorie
> npx koorie --static-files=public  --library=react

{ address: '127.0.0.1', family: 'IPv4', port: 3001 }
koorie your browser here ⬇︎ 
 http://localhost:3001
----------------------------------------------------

open your browser and try it out


Commands & Flags


commandsflagsdescription
install--bare={void}Generates a project in current working directory ❗️ overwrites
--git={void}Initialize a git repository.
--author={string}Default set autogenerated.
--description={string}Default set autogenerated.
--license={string}Default set to Apache-2.0
--name={string}Default set autogenerated.
--version={semver-string}Default set to 0.0.1.

install

The install command will instantiate a React project based on @react-dang/app


  • --bare

    • This flag doesn't accept any argument. Instantiates the project in the current working directory.
    • ⚠ will overwrite everything in the current working directory.
  • --git

    • This flag doesn't accept any argument. Initialize a git repository.
  • --name

    • Sets package.json property name.
    • Default set to autogenerated.
  • --author

    • Sets package.json property author.
    • Default set to autogenerated.
  • --description

    • Sets package.json property description.
    • Default set to autogenerated.
  • --license

    • Sets package.json property license.
    • Default set to Apache-2.0.
  • --version

    • Sets package.json property version.
    • Default set to 0.0.1

Road Map


  • --blank{void} - Initializes a React project without any components.
  • --git={void} - Initializes the local git repository, requires git installed on the host OS.
  • --json={options(option:value)}-{from file} - Populates the package.json properties from a set of options(key:value) or load from a file.
  • --url-repository={string} - Sets the git repository url package.json
  • --dependency={options(option:value)} - Sets dependencies package.json
  • --devDependency={options(option:value)} - Sets extra-devDependencies package.json
  • --scripts={options(option:value)} - Sets extra-scripts package.json

Koorie


In this template project Koorie exposes a route to handle the message sent from the contacts form.
just check the code @./routes/message/route.js in the root directory of your project.

Another important file @./middleware.js where is possible to inject new routes into koorie. check the code.

To know more about Koorie and its functionalities go @ ➡ GitHub.


JetBrains OSS License


I want to thank JetBrains to grant me the Open Source Software license for all their products. This opportunity gives me strength to keep on going with my studies and personal project.
To learn more about this opportunity have a look at Licenses for Open Source Development - Community Support.

Thank you

1.2.6-alpha

2 years ago

1.2.3-alpha

2 years ago

1.2.9-alpha

2 years ago

1.2.2-alpha

2 years ago

1.2.5-alpha

2 years ago

1.2.1-alpha

2 years ago

1.0.1-alpha

2 years ago

1.2.8-alpha

2 years ago

1.2.4-alpha

2 years ago

1.2.10-alpha

2 years ago

1.2.7-alpha

2 years ago

1.0.0-alpha

2 years ago

1.2.0-alpha

2 years ago

0.0.53-alpha

2 years ago

0.0.52-alpha

2 years ago

0.0.51-alpha

2 years ago

0.0.50-alpha

2 years ago

0.0.49-alpha

2 years ago

0.0.48-alpha

2 years ago

0.0.47-alpha

2 years ago

0.0.46-alpha

2 years ago

0.0.45-alpha

2 years ago

0.0.44-alpha

2 years ago

0.0.43-alpha

2 years ago

0.0.42-alpha

2 years ago

0.0.41-alpha

2 years ago

0.0.40-alpha

2 years ago

0.0.39-alpha

2 years ago

0.0.38-alpha

2 years ago

0.0.37-alpha

2 years ago

0.0.36-alpha

2 years ago

0.0.35-alpha

2 years ago

0.0.34-alpha

2 years ago

0.0.33-alpha

2 years ago

0.0.32-alpha

2 years ago

0.0.31-alpha

2 years ago

0.0.30-alpha

2 years ago

0.0.29-alpha

2 years ago

0.0.28-alpha

2 years ago

0.0.26-alpha

2 years ago

0.0.25-alpha

2 years ago

0.0.24-alpha

2 years ago

0.0.23-alpha

2 years ago

0.0.22-alpha

2 years ago

0.0.21-alpha

2 years ago

0.0.20-alpha

2 years ago

0.0.19-alpha

2 years ago

0.0.18-alpha

2 years ago

0.0.17-alpha

2 years ago

0.0.16-alpha

2 years ago

0.0.15-alpha

2 years ago

0.0.14-alpha

2 years ago

0.0.13-alpha

2 years ago

0.0.12-alpha

2 years ago

0.0.11-alpha

2 years ago

0.0.10-alpha

2 years ago

0.0.9-alpha

2 years ago

0.0.8-alpha

2 years ago

0.0.6-alpha

2 years ago

0.0.5-alpha

2 years ago

0.0.4-alpha

2 years ago

0.0.3-alpha

2 years ago

0.0.2-alpha

2 years ago

0.0.1-alpha

2 years ago