This project includes a hotel sharing platform developed using Prisma, MongoDB, Next.js, Redux, TypeScript, and Next-Auth technologies. Through this platform, users can create accounts with their own information, share hotel details, and log in with their Google accounts. The data is stored in MongoDB.
- Prisma: Used for database access and querying.
- MongoDB: NoSQL database where data is stored.
- Next.js: React-based framework with server-side rendering (SSR) support.
- Redux: Used for state management.
- TypeScript: Programming language that provides type safety.
- Next-Auth: Used for authentication and authorization processes.
You can follow the steps below to run the project on your local machine:
-
Installing Requirements: To run the project, you'll need the following requirements:
- Node.js
- MongoDB
-
Cloning and Installing the Project: Open your terminal and navigate to the project's main directory:
npm install
-
Setting Environment Variables:
You might need to set some environment variables for the project to work properly. Copy the .env.example file as .env and fill in the required values.
-
Establishing Database Connection:
Start your MongoDB database and update the database connection URL in the .env file.
-
Running the Project:
Use the following command in the terminal to start the project:
npm run dev
This command will start the Next.js development server and allow you to view the project in your browser.