A community-driven platform for asking and answering programming questions π. Get help, share knowledge, and collaborate with developers from around the world. Explore topics in web development, mobile app development, algorithms, data structures, and more.
Visit https://devexchanges.vercel.app/ to see the live demo!
Follow these steps to set up the Dev Exchange project locally:
- Pull the Docker image from the Docker Hub:
docker pull nishitbaria/devexchange
1. kubectl apply -f deployment.yaml
2. kubectl apply -f service.yaml
Before you begin, ensure you have the following installed on your machine:
- Node.js: Make sure to install Node.js, which includes npm (Node Package Manager).
- MongoDB: Set up a MongoDB database and obtain the connection URL.
You can clone the repository using either the command line or GitHub Desktop.
git clone https://github.com/Nishitbaria/Dev-Exchange.git
cd Dev-Exchange
- Install GitHub Desktop if you haven't already.
- Open GitHub Desktop and click on "File" > "Clone Repository".
- In the "Clone a Repository" window, switch to the "URL" tab.
- Enter the repository URL:
https://github.com/Nishitbaria/Dev-Exchange.git
- Choose the local path where you want to clone the repository.
- Click on "Clone".
- Once cloned, click on "Open in Visual Studio Code" (or your preferred editor).
npm install
- Create a
.env.local
file in the root of the project. - Add the following environment variables and replace the values with your own:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
NEXT_PUBLIC_TINY_EDITOR_API_KEY=
NEXT_CLERK_WEBHOOK_SECRET=whsec_erJXNtiEmSyU6XyobojZnp7fA2otaDtD
MONGODB_URL=
NEXT_PUBLIC_SERVER_URL=http://localhost:3000/
OPENAI_API_KEY=
NEXT_PUBLIC_GOOGLE_GIMINI_API_KEY=
npm run dev
The application should now be running locally. Visit http://localhost:3000 in your web browser to access Dev Exchange.
To build the project for production, use the following command:
npm run build
npm start
Visit http://localhost:3000 to access the production build locally.
Please follow our CONTRIBUTING guidelines for the following:-
- Setup DevExchange on your local machine
- Create an Issue using the relevant issue Template
- Follow the contributing guidelines
- And more!
Need help while contributing? Tag any of the maintainers when creating the issue. You can tag us using: @username
|
|
|
|
We would like to express our sincere gratitude to all the contributors who have helped make LinksHub an invaluable resource for developers! Without your contributions, this project wouldn't have been possible. Thank you so much for your time, effort, and dedication! π
View the list of all contributors here.
Dev-Exchange is licensed under the terms of the MIT License. check out LICENSE for details. |
- π° Become our Sponsor!
- β Star our Repo
- π₯ Rate us on Repo Rater Together, we can continue to improve and expand this resource hub for people worldwide! πͺ