Create Ads Service is a full-stack web application built with Next.js, Prisma, TypeScript, and MongoDB. It allows users to sign up, sign in, create property ads, and list all ads they have created. The project uses next-auth for authentication with stateless JWT validation, and it features color-coded validation for an enhanced user experience.
- User authentication (sign up, sign in)
- Create and list user-specific ads
- Color-coded form validation
- Secure authentication using next-auth with JWT
- Node.js
- npm or pnpm
-
Clone the repository:
git clone https://github.com/panoskouff/create-ads-service cd create-ads-service
-
Install the dependencies:
npm install # or pnpm install
-
Copy
.env-sample
to.env
and fill in the required environment variables:cp .env-sample .env
-
Generate Prisma client and types:
npx prisma generate # or pnpx prisma generate
-
Run the development server:
npm run dev # or pnpm run dev
Open http://localhost:3000 with your browser to see the result.
dev
: Run the development server.build
: Build the application for production.start
: Start a production server.lint
: Lint the project files with eslint.format
: Format the project files with prettier.test
: Run tests.test:watch
: Run a specific test in watch mode.
This application is deployed at create-ads-service.vercel.app.