You are viewing a single comment's thread from:

RE: LeoThread 2024-12-26 10:36

in LeoFinance2 months ago

Part 5/8:

  1. Create and Configure the Database:
  • Once installed, set up the database and roles needed for your application. Be sure to grant appropriate privileges to your new user.
  1. Migrations:
  • If you have existing migrations, run the necessary commands to set up your database schema.
  1. Connecting Application to Database:
  • Ensure your application has the correct environment variables pointing to your database.

Running the Application on the Server

With everything in place, it's time to run the application:

  1. Use npm start to launch your Node.js application, which will run it on port 3000.

  2. Adjust your EC2 security group settings to allow traffic on port 3000 temporarily for testing.

Setting Up a Reverse Proxy with Caddy