An open API service indexing awesome lists of open source software.

https://github.com/pinkysamantaray/remix-demo

A demo Login Portal built with Remix and React, Hero UI(tailwind)
https://github.com/pinkysamantaray/remix-demo

heroui react remix tailwindcss webappdevelopment

Last synced: 8 months ago
JSON representation

A demo Login Portal built with Remix and React, Hero UI(tailwind)

Awesome Lists containing this project

README

          

# Welcome to Remix!

## Remix Demo App

In this project, we’ll build a scalable web application using Remix. We’ll learn about routing, server-side rendering (SSR), API integration, and managing data effectively with modern best practices.

- πŸ“– [Remix docs](https://remix.run/docs)

## πŸš€ Key Takeaways

- Introduction to Remix and its benefits
- Setting up a Remix development environment
- Creating a scalable project structure
- File-based routing including dynamic routes like `/profile/:id` and nested layouts for reusable components
- Working with `loader` functions for fetching data on the server and `action` functions for handling form submissions and mutations.
- Using Tailwind CSS for responsive design
This template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever css framework you prefer. See the [Vite docs on css](https://vitejs.dev/guide/features.html#css) for more information.
- Integrating algorithms and data structure concepts into a real-world app

---

## πŸ“‚ Project Structure

Here’s the folder structure we use in this project:

```
app/
β”œβ”€β”€ routes/
β”‚ β”œβ”€β”€ index.tsx // Home route
β”‚ β”œβ”€β”€ about.tsx // Static About page
β”‚ β”œβ”€β”€ profile.$id.tsx // Dynamic profile route
β”‚ └── api/ // API-related routes
β”œβ”€β”€ components/ // Reusable components
β”œβ”€β”€ styles/ // Tailwind CSS files
β”œβ”€β”€ utils/ // Utility functions
β”œβ”€β”€ root.tsx // Application root layout
└── entry.client.tsx // Client-side entry point
```

---

## πŸ› οΈ Setting Up the Project

### Prerequisites

Make sure you have the following installed:

- **Node.js** (v16 or later)
- **npm** or **yarn**

### Installation Steps

1. Install dependencies:

```bash
npm install
```

2. Start the development server:

```bash
npm run dev
```

3. Open the browser and navigate to `http://localhost:5173`.

### Deployment

First, build your app for production:

```sh
npm run build
```

- `build/server`
- `build/client`

Then run the app in production mode:

```sh
npm start
```

Open the browser and navigate to `http://localhost:3000`.

Now you'll need to pick a host to deploy it to.

---

## πŸ“œ License

This project is open-source under the [MIT License](LICENSE).

---

## πŸ”— Additional Resources

- **[Remix Documentation](https://remix.run/docs)**: Official Remix documentation
- **[Tailwind CSS](https://tailwindcss.com/)**: Styling framework used in this project

- How Remix work? Β―\_(ツ)\_/Β―

![Remix Components Flow](https://github.com/pinkysamantaray/remix-demo/blob/main/public/remix-components-flow.png)
![Remix Data Flow](https://github.com/pinkysamantaray/remix-demo/blob/main/public/remix-data-flow.png)