Zenith is a modern, secure, and user-friendly cryptocurrency wallet application built with Next.js and Firebase. It allows users to manage their crypto assets, buy and send cryptocurrencies, and handle their payment methods securely.
- Framework: Next.js with App Router
- UI: React, TypeScript, ShadCN UI, Tailwind CSS
- Backend & Database: Firebase (Authentication, Firestore)
- Styling: Tailwind CSS
- Form Management: React Hook Form & Zod
To run this project on your local machine, follow these steps:
- Node.js (v18 or later recommended)
- npm or yarn
- A Firebase project. If you don't have one, create one at the Firebase Console.
Clone this repository to your local machine.
git clone <your-repository-url>
cd <repository-name>Install the necessary packages using npm or yarn.
npm installYou need to connect the application to your Firebase project.
- Navigate to your project in the Firebase Console.
- Go to Project Settings > General.
- Under "Your apps", select the web app (or create a new one if it doesn't exist).
- Choose Config for the SDK setup and copy the
firebaseConfigobject. - Paste this object into
src/firebase/config.ts, replacing the existing placeholder.
- Authentication: In the Firebase Console, go to the Authentication section. Click "Get started" and enable the Email/Password sign-in provider.
- Firestore: Go to the Firestore Database section. Click "Create database" and start in production mode. You will need to update the security rules.
Copy the contents of the firestore.rules file from the project root and paste them into the Rules tab of your Firestore database in the Firebase Console. Click "Publish".
Start the Next.js development server.
npm run devThe application will be available at http://localhost:9002.
This project is configured for easy deployment using Firebase App Hosting.
- Firebase CLI installed and authenticated (
firebase login). - Your local code is connected to your Firebase project (
firebase use <your-project-id>).
-
Build the Project: Create a production-ready build of your Next.js application.
npm run build
-
Deploy to Firebase: Deploy the application using the Firebase CLI. The
apphosting.yamlfile in the root directory tells Firebase how to deploy and manage your app.firebase apphosting:backends:deploy
Follow the prompts from the CLI. It will guide you through creating a backend resource if one doesn't exist and deploying your code.
After deployment, the CLI will provide you with the URL where your application is live.
Para que puedas probar, puedes registrar un nuevo usuario con las siguientes credenciales: Email: admin@zenith.com Contraseña: password123