2.4.4 • Published 1 year ago

instant-app-setup v2.4.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago
# instant-app-setup

**instant-app-setup** is a Node.js package for quickly setting up full-stack applications with automated directory creation, package installation, and configuration.

## Features

- **Automated directory setup**
- **Interactive package installation**
- **Backend**: Sets up `index.js` with basic content, connects to database, installs packages (express, mongoose, jwt, bcrypt, morgan, etc.)
- **Frontend**: Installs React (via Vite) or other frameworks (Vanilla, Vue), sets up CSS libraries (Tailwind, Bootstrap, Ant, Sass, MUI, Chakra, etc.)

## Installation

```bash
npm install -g instant-app-setup
```

## Usage

### Full-Stack Project

```bash
build
```

### Backend Only

```bash
build-backend
```

### Frontend Only

```bash
build-frontend
```

Follow the prompts to name your project and select packages.

## MongoDB Setup

1. **Install `mongoose`** in your backend directory:
   ```bash
   npm install mongoose
   ```
2. **Update `index.js` or `server.js`**:

   ```javascript
   import express from "express";
   import mongoose from "mongoose";

   const app = express();

   mongoose
     .connect(process.env.MONGODB_URI || "mongodb://localhost:27017/mydatabase")
     .then(() => console.log("MongoDB connected"))
     .catch((err) => console.error("MongoDB connection error:", err));

   const PORT = process.env.PORT || 3000;
   app.listen(PORT, () => {
     console.log(`Server is running on port ${PORT}`);
   });
   ```
2.4.4

1 year ago

2.4.3

1 year ago

2.4.2

1 year ago

2.4.0

1 year ago

2.3.7

1 year ago