/mentor-match

Mentor Matching website

Primary LanguageTypeScript

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Contributing

Join us in project discussion

Clone the Repository

  1. Open your terminal or command prompt.
  2. Navigate to the directory where you want to clone the repository.
  3. Run the following command to clone the repository:
git clone <repository-url>

Replace <repository-url> with the actual URL of the repository.

  1. Navigate to the cloned repository directory:
cd <repository-name>

Replace <repository-name> with the name of your repository.

  1. Install the project dependencies:
npm install

Note: Make sure you are in the root of your project directory before running the above command.

Create a New Branch

After cloning the repository, it's a good practice to create a new branch for your feature work. Here's how you can do it:

  1. Navigate to the cloned repository directory.
  2. Run the following command to create a new branch:
git checkout -b <branch-name>

Replace <branch-name> with the name of your new branch.

Remember, it's a good practice to name the branch something that describes the feature you're working on.

Setup DB

  1. Either run it locally or create a cloud DB.

Local

  1. docker run --name mongodb -d -p 27017:27017 mongodb/mongodb-community-server:latest

Copy .env.example to .env.local

  1. cp .env.example .env.local
  2. Modify the MONGO_URI string to your DB connection (the default string is for local DB connection)

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Running Formatting Script

npm run format

Run the above script to have Prettier format all files in the codebase.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.