Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/handipriyono/moovie-next
https://github.com/handipriyono/moovie-next
Last synced: about 16 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/handipriyono/moovie-next
- Owner: handipriyono
- Created: 2024-04-23T16:39:00.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-23T16:39:17.000Z (9 months ago)
- Last Synced: 2024-05-01T15:14:50.533Z (8 months ago)
- Language: TypeScript
- Size: 258 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Moovie Application
Welcome to your Next.js application! This README provides an overview of how to run your application locally and deploy it using PM2 for production.
## Local Development
To run your Next.js application locally, follow these steps:
1. **Install Dependencies**: Run the following command to install the required dependencies:
```bash
npm install
```2. **Start the Development Server**: Once the dependencies are installed, start the development server with the following command:
```bash
npm run dev
```Your Next.js application should now be running locally. You can access it in your web browser at [http://localhost:3000](http://localhost:3000).
## Production Deployment with PM2
To deploy your Next.js application in a production environment using PM2, follow these steps:
1. **Install PM2 (if not already installed)**: Run the following command to install PM2 globally:
```bash
npm install pm2@latest -g
```2. **Start the Next.js Application with PM2**: Run the following command to start your Next.js application with PM2:
```bash
npm run start-prod
```Your Next.js application is now running in a production environment managed by PM2. The `"start-prod"` script in your `package.json` file executes the build process (`npm run build`) and then starts the application with PM2 (`pm2 start npm --name "bnc-moovie" -- start`).
## Additional Resources
- [Next.js Documentation](https://nextjs.org/docs) - Learn more about Next.js and its features.
- [PM2 Documentation](https://pm2.keymetrics.io/docs/usage/quick-start/) - Explore PM2's documentation for more advanced usage and configurations.