This is a Next.js project bootstrapped with create-next-app.
- Node.js 18.x or later
- npm or yarn package manager
- Google Cloud Console account for OAuth credentials
- Clone the repository
git clone [repository-url]
cd devmolink- Install dependencies
npm install
# or
yarn install- Set up environment variables
# Copy the example env file
cp .env.example .envConfigure the following variables in your .env file:
GOOGLE_CLIENT_ID: Get from Google Cloud ConsoleGOOGLE_CLIENT_SECRET: Get from Google Cloud ConsoleNEXTAUTH_URL: Usehttp://localhost:3000for local developmentNEXTAUTH_SECRET: Generate usingopenssl rand -base64 32NEXT_PUBLIC_USE_MOCK_DATA: Set tofalsefor developmentNEXT_PUBLIC_ENVIRONMENT: Set todevelopmentNEXT_PUBLIC_TEST_MODE: Set as needed
To get Google OAuth credentials:
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Google OAuth2 API
- Create OAuth 2.0 credentials (Web application type)
- Add authorized redirect URIs:
http://localhost:3000/api/auth/callback/google(development)https://your-production-domain.com/api/auth/callback/google(production)
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
/src/app- Next.js 13+ app directory/api- API routes/components- Reusable React components/utils- Utility functions
- Never commit the
.envfile to version control - Each developer should maintain their own environment variables
- Production credentials should be managed through secure systems
- Regular security updates and credential rotation is recommended
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
built by aikhan jumashukurov princeton cs · ai researcher · kyrgyz government innovation recognition.