Skip to content

tqmsh/hackd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js & GitHub Actions

1-click-deploy

A basic Next.js app with a Dockerfile and docker-compose ready to deploy to AWS with Defang with GitHub Actions configured for CI/CD.

Steps to Set Up

  1. Install Defang
    Run the following command to install Defang:

    brew install DefangLabs/defang/defang
    
  2. Authenticate with Defang
    After installation, authenticate by running:

    defang login
    

    Follow the on-screen instructions and open the provided URL to complete authentication.

  3. Optional: Authenticate with AWS
    To authenticate with AWS, follow this guide.

  4. Set Up Environment Variables
    Copy the .env.local.template file and rename it to .env.local. Then fill the environment variables with the required values.

  5. Set up Authentication To setup Convex authentication, follow the steps in this tutorial From this, you would get the necessary variables to fill up what is needed as indicated in the .env template.

  6. Navigate to the Web Directory
    To ensure you're in the right project directory where the Next.js app is located, move to the web folder by running the command:

    cd web
    

    This step is important as it ensures you're in the correct location to install project dependencies in the next step.

  7. Install Dependencies
    Install all required dependencies by running:

    npm install
    npm install @radix-ui/react-label
    
  8. Run the Application
    Before doing npm run dev, you show make sure that the email your github is associated with, has been added as an Admin in the convex Member tab. Start the application by navigating to the project root and running:

    npm run dev
    

    Select choose an existing project, pick the right team, pick yes when it comes to the right project, and you are good.

    If there are issues with missing configurations, ensure the .env.local file is set correctly and run defang config to manage sensitive configs.

  9. Defang Docker Compose Up
    Run the following command to start the Docker container:

    defang compose up
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.9%
  • Jupyter Notebook 30.2%
  • JavaScript 8.8%
  • Python 6.5%
  • CSS 1.4%
  • Dockerfile 0.2%