This Next.js project with the following features:
- A public home page.
- A login page.
- Dashboard pages that are protected by authentication.
- The ability for users to add, edit, and delete invoices.
These instructions will help you set up and run the project on your local machine.
Make sure you have the following installed on your machine:
- Node.js: Download and Install Node.js
- npm: npm is bundled with Node.js. You can check if you have npm installed by running
npm -v
in the terminal.
-
Clone the repository:
git clone https://github.com/your-username/your-project.git
-
Change into the project directory:
cd your-project
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit http://localhost:3000 to view the application.
-
Create a project on GitHub
-
Go to https://vercel.com, connect your GitHub account and create a project based on your GitHub repository
-
Create a Postgres database
-
Go to Storage -> Select the database you created -> Go to "env.local" tab -> Show secret -> Copy Snippet -> Paste it in the .env file created in the root directory
-
Make sure you have completed the previous steps
-
Run "npm run seed" in the terminal. You should see some console.log messages in your terminal to let you know the script is running.