It is currently markdown renderer turned portfolio website. Initially, the goal was to create a blogs website which uses markdown then it converted into portfolio website to test its feasibility, and later on it will be implemented for general purpose blog website with a single source of truth that is GitHub Markdown file.
To understand the project in-depth click here
Before you begin, ensure you have installed:
- Node.js (LTS version recommended)
- npm (comes with Node.js)
- Git
-
Clone the repository:
git clone https://github.com/proSamik/prosamik-nextjs-app.git cd prosamik-nextjs-app
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory:PORT=10000 # Or your preferred backend port NEXT_PUBLIC_BASE_URL=http://your-backend-url:10000
To run the development server with Turbopack:
npm run dev
The application will be available at http://localhost:3000
(or your configured port).
-
Generate sitemap and build the application:
npm run build
-
Start the production server:
npm run start
npm run dev
- Start development server with Turbopacknpm run build
- Generate sitemap and build for productionnpm run start
- Start production servernpm run lint
- Run ESLint for code qualitynpm run generate-sitemap
- Generate sitemap manually
- Next.js 15.1.2
- React 19.0.0
- TypeScript
- Tailwind CSS 3.4.1
- Fork the repository
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Add me as a reviewer
- Submit a pull request
Common issues and solutions:
- Build errors
- Clear
.next
directory:rm -rf .next
- Delete
node_modules
:rm -rf node_modules
- Reinstall dependencies:
npm install
- Environment variables not working
- Ensure
.env
file is in the root directory - Verify all environment variables start with
NEXT_PUBLIC_
if used in client-side code - Restart the development server
- Turbopack issues
- Try running without Turbopack: Remove
--turbopack
from the dev script - Clear cache:
rm -rf .next