Skip to content

Getting Started

Cptcr edited this page May 2, 2025 · 1 revision

🛠️ Getting Started

Follow these steps to set up the Next.js Portfolio on your local development environment.

1. 📦 Prerequisites

Make sure you have the following installed:

You can check your versions with:

node -v
npm -v

2. 🔄 Clone the Repository

git clone https://github.com/cptcr/next.js_portfolio.git
cd next.js_portfolio

3. 📥 Install Dependencies

Using npm:

npm install

Or using yarn:

yarn

4. ▶️ Run the Development Server

Start the development server:

npm run dev

Then open http://localhost:3000/ in your browser to see the portfolio.

5. ⚙️ Environment Variables (Optional)

If your project requires API keys or specific environment configs, create a .env.local file in the root directory. Example:

NEXT_PUBLIC_API_KEY=your_api_key_here

Check the README or source code for required variables.

6. 📦 Build for Production

To build the app for production:

npm run build

Then, to start the production server:

npm start

🧪 Testing (If applicable)

If the repo includes tests:

npm test

✅ You're All Set!

You should now have the portfolio running locally. Next, head over to [Customization Guide](Customization-Guide) to personalize your portfolio.