Part 5/8:
- 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.
- Migrations:
- If you have existing migrations, run the necessary commands to set up your database schema.
- 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:
Use
npm start
to launch your Node.js application, which will run it on port 3000.Adjust your EC2 security group settings to allow traffic on port 3000 temporarily for testing.