
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
create-miracle-app
Advanced tools
A create template for initializing projects at MiracleSoftware Systems.
project-root/
│
├── src/app/v1 # Source code directory
│ ├── controllers/ # Controllers logic
│ ├── modls/ # Data models
│ ├── routes/ # API routes
│ └── utils/ # Utility functions
│
├── config.js # Configuration settings
├── logger.js # Winston logger configuration
├
├── .env.development # set the env for development
├── .env.production # set the env for production
├── .env.staging # set the env for staging
│
├── tests/ # Test files
│── .log # API logs and console logs
├── .gitignore # Git ignore file
├── package.json # Node.js dependencies and scripts
├── README.md # Project documentation
└── app.js # Entry point for the server
Clone the project
git clone https://link-to-project
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm start
To run the server with specific environment
npm start [environment]
This template is built on top of React + Vite by Miracle Innovation Labs⚡ at Miracle Software Systems
Tailwind CSS: Tailwind CSS is a utility-first CSS framework for rapidly building modern websites without ever leaving your HTML
ShadCn: Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source
We recommend using shadcn-ui instead of traditional component libraries
.
├── public # This directory contains static assets that are served as-is by your web server
├── src # This directory contains your application's source code.
│ ├── assets # This directory contains static assets that are imported into your JavaScript/JSX files
│ ├── components # Contains reusable React components.
│ ├── layout # Layout of our application.
│ ├── lib # This directory may contain utility functions, helper classes, or any other JavaScript modules
│ ├── screens # These screens represent the different user interfaces that users interact with as they navigate
│ ├── services # Contains modules responsible for handling interactions with external services, such as APIs.
│ ├── App.jsx # Development starts here.
│ ├── global.css # Contains Tailwind and shadCn css configuration.
│ ├── index.css # Default CSS.
│ └── main.jsx # This is the entry point JavaScript/JSX file where your React application starts.
├── .env.example # Contains only keys referring to actual environment variables
├── .eslint.cjs # eslint config
├── .gitignore # gitignore config
├── components.json # Shadcn configurations
├── index.html # Base HTML file
├── jsconfig.json # jsconfig for alias imports
├── package.json # Package.json file
├── postcss.config.js # PostCSS configuration
├── README.md # This file typically contains information about your project
├── tailwind.config.js # Tailwind CSS
└── vite.config.js # Vite config file
Components:
Header
, Button
, LoginForm
.Header
should be defined in a file named Header.js
.Props:
<Button buttonText="Click me" />
.State:
const [count, setCount] = useState(0);
.Events:
onClick
, onChange
.CSS Classes:
.button-primary
, .header-container
.Files and Folders:
user-profile
, utils
.Constants and Environment Variables:
MAX_LENGTH
, API_URL
.Hooks:
use
. For example: useLocalStorage
, useTheme
.Routes:
Home
, About
, Dashboard
.Comments:
In this template, we have configured Miracle standard colors. You can use them like regular Tailwind classes. For example: text-miracle-lightBlue
, bg-miracle-black
.
miracle: {
lightBlue: '#00aae7',
mediumBlue: '#2368a0',
darkBlue: '#0d416b',
red: '#ef4048',
black: '#232527',
white: '#ffffff',
darkGrey: '#8c8c8c',
lightGrey: '#b7b2b3'
}
Comes with Montserrat as default font can be changed in index.css
Going forward you need to update .env.example file with your env file for reference purpose in .env.example only keep keys
ENV :
SERVER_URL :
CLIENT_KEY :
Create a template using the following command and select react
npm create @miraclesoft/project
?select template
> react
Enter your project name >> my-awesome-project
After creating project follow instruction on console
FAQs
A create template for initializing projects at MiracleSoftware Systems.
The npm package create-miracle-app receives a total of 2 weekly downloads. As such, create-miracle-app popularity was classified as not popular.
We found that create-miracle-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.