This is a Next.js project bootstrapped with create-next-app
, designed to provide a robust web application framework with modern development practices.
Before getting started, ensure you have the following installed:
- Node.js (recommended version: 18.x or later)
- npm, Yarn, pnpm, or Bun package manager
- Git
- A code editor (VS Code, WebStorm, etc.)
-
Create a
.env
file in the project root directory -
Copy the contents from
.env.example
-
Fill in the necessary environment variables with your specific configuration
# Example configuration NEXT_PUBLIC_NESHAN_MAP_KEY=web.****** NESHAN_API_KEY=service.****** DATABASE_URL="postgres://*****"
Initialize or update the database schema:
npx prisma db push
This command applies any pending database schema changes defined in your Prisma schema.
Start the development server using your preferred package manager:
# npm
npm run dev
# Yarn
yarn dev
# pnpm
pnpm dev
# Bun
bun dev
Once the server is running, open http://localhost:3000 in your web browser.
npm run build
: Create a production buildnpm run start
: Start the production servernpm run lint
: Run ESLint to check code qualitynpx prisma studio
: Open Prisma Studio for database management
- Always work on a feature branch
- Keep
.env
files out of version control - Regularly update dependencies
- Use TypeScript for type safety
- Follow consistent code formatting
- Ensure all environment variables are correctly set
- Verify database connection strings
- Check Node.js and package manager versions
- Clear npm/yarn cache if experiencing dependency issues