Skip to content

Commit c2be73d

Browse files
committed
update readme
1 parent b1f5a64 commit c2be73d

File tree

6 files changed

+80
-19
lines changed

6 files changed

+80
-19
lines changed

Diff for: .env.example

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
GOOGLE_API_KEY=
2+
GOOGLE_API_CX=
3+
4+
YOUTUBE_API_KEY=
5+
6+
NEWS_API_KEY=
7+
OPENAI_API_KEY=
8+
9+
NEXTAUTH_URL=
10+
NEXTAUTH_SECRET=
11+
12+
GITHUB_ID=
13+
GITHUB_SECRET=
14+
15+
AUTH0_ISSUER_BASE_URL
16+
AUTH0_CLIENT_ID
17+
AUTH0_CLIENT_SECRET=
18+
19+
MONGODB_USERNAME=
20+
MONGODB_PASSWORD=
21+
MONGODB_HOST=
22+
MONGODB_DB=

Diff for: README.md

+58-19
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,77 @@
11
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
SearchEx is a search engine clone built with Next.js 13 (beta dir). It utilizes Google Custom Search API and other APIs to provide users with search results. Users can log in and log out using Next-Auth for authentication.
3+
4+
## Features
5+
* Clean UI
6+
* Search for web pages, images, news, and videos
7+
* View search history and saved searches
8+
* Sign up, log in, and log out
9+
* Support for multiple authentication providers (e.g. Google, GitHub)
10+
* Pagination system at the bottom of the search page
11+
* Open AI for Card
12+
* Light & dark Theme
213

314
## Getting Started
415

5-
First, run the development server:
16+
To get started with this project, you can simply clone this repository and install the necessary dependencies.
617

718
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
19+
git clone https://github.com/devxprite/searchex.git
20+
cd searchex
21+
npm install
1322
```
1423

15-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
24+
### Configuration
25+
Before running the project, make sure to set up the environment variables in a .env file located in the root directory of the project. Below is a sample .env file:
26+
```
27+
GOOGLE_API_KEY=
28+
GOOGLE_API_CX=
1629
17-
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
30+
YOUTUBE_API_KEY=
1831
19-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
32+
NEWS_API_KEY=
33+
OPENAI_API_KEY=
2034
21-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
35+
NEXTAUTH_URL=
36+
NEXTAUTH_SECRET=
2237
23-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
38+
GITHUB_ID=
39+
GITHUB_SECRET=
2440
25-
## Learn More
41+
AUTH0_ISSUER_BASE_URL
42+
AUTH0_CLIENT_ID
43+
AUTH0_CLIENT_SECRET=
2644
27-
To learn more about Next.js, take a look at the following resources:
45+
MONGODB_USERNAME=
46+
MONGODB_PASSWORD=
47+
MONGODB_HOST=
48+
MONGODB_DB=
49+
```
2850

29-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
30-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
51+
### Running the Project
3152

32-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
53+
Once you have set up the environment variables, you can start the development server with the following command:
54+
```bash
55+
npm run dev
56+
```
57+
This will start the Next.js development server at http://localhost:3000.
58+
The website auto-updates as you edit the file.
59+
60+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
3361

34-
## Deploy on Vercel
62+
## Screenshots
63+
![Alt text](./public/images/home.png)
64+
![Alt text](./public/images/page_1.png)
65+
![Alt text](./public/images/page_2.png)
66+
![Alt text](./public/images/page_3.png)
3567

36-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
3768

38-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
69+
## License
70+
This project is licensed under the MIT License.
71+
72+
## Learn More
73+
74+
To learn more about Next.js, take a look at the following resources:
75+
76+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
77+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

Diff for: public/images/home.png

195 KB
Loading

Diff for: public/images/page_1.png

789 KB
Loading

Diff for: public/images/page_2.png

1.51 MB
Loading

Diff for: public/images/page_3.png

1.7 MB
Loading

0 commit comments

Comments
 (0)