Skip to content

victordev13/curso-microsaas

Repository files navigation

Micro Saas - Sou Eu Dev "Project in Bio"

Description

This is a Micro Saas project developed during the Micro Saas course by Rocketseat. The objective of this project is to provide an page for developers to showcase their projects.

Built With

Next.js React Tailwind CSS Firebase Auth.js Stripe Lucide Resend

Requirements

Firebase database and storage

Add them to your .env file:

FIREBASE_PROJECT_ID=
FIREBASE_CLIENT_EMAIL=
FIREBASE_PRIVATE_KEY=
FIREBASE_STORAGE_BUCKET=

Auth.js

To use Google authentication in Auth.js, you need to obtain your credentials:

  1. Go to the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Navigate to APIs & Services > Credentials.
  4. Click Create Credentials > OAuth 2.0 Client ID.
  5. Set up the consent screen and configure the redirect URIs.
    - Authorized JavaScript Sources: http://localhost:3000
    - Authorized redirect URIs: http://localhost:3000/api/auth/callback/google
  6. Copy your Client ID and Client Secret.

Add them to your .env file:

AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
AUTH_SECRET=

Stripe

  1. Create a Stripe account
  2. Register products and get their Product IDs
  3. Set up a local webhook with stripe cli - Run pnpm webhook:run to retrieve the webhook secret
  4. Get API keys (Public Key, Secret Key)

Add them to your .env file:

STRIPE_LIFETIME_PRICE_ID=
STRIPE_MONTHLY_PRICE_ID=
STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

Resend

To use Resend for sending emails, you need to obtain your API key:

  1. Go to the Resend website and create account
  2. Navigate to the API section to generate a new API key

Add it to your .env file:

RESEND_API_KEY=

Getting Started

Follow the steps below to set up the project locally:

  1. Clone the repository:
git clone https://github.com/victordev13/curso-microsaas.git
  1. Navigate to the project directory:
cd curso-microsaas
  1. Install the dependencies:
pnpm install
  1. Create and configure the .env file:
cp .env.dist .env
# Edit the .env file with your Firebase credentials
  1. Start the development server:
pnpm dev
  1. Start the local stripe webhook:
pnpm webhook:run
  1. Open http://localhost:3000 in your browser.

Screenshots

FireShot Capture 001 -  -  localhost FireShot Capture 002 -  -  localhost FireShot Capture 003 -  -  localhost FireShot Capture 004 -  -  localhost FireShot Capture 005 -  -  localhost 2025-02-20_20-02 2025-02-20_20-05

TODO

  • Allow to edit or remove user card custom links
  • Allow to edit or remove projects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages