This guide will help you set up your own instance of ClientWords.
- Node.js (v20.x)
- MongoDB
- You need to create OAuth credentials for Google which is need for auth.js (nextauth). Visit https://developers.google.com/identity/protocols/oauth2 to learn more and https://console.cloud.google.com/apis/dashboard to create a new project and OAuth credentials. You need to set the redirect URL to
http://localhost:3000/api/auth/callback/google
for development. You can also set the redirect URL to your own domain if you are deploying the app.
- Clone the repository:
git clone https://github.com/n3rm4121/clientwords.git
cd clientwords
- Install dependencies:
npm install
Create a .env file in the root directory based on .env.sample:
cp .env.sample .env
- Start the development server:
npm run dev
Open http://localhost:3000 to view ClientWords in development mode.
Refer to the docker-compose.yml file to set up the environment using Docker.
Refer to the Dockerfile for building the Docker image.
- Build and start the services:
docker-compose up --build
- Open http://localhost:3000 to view ClientWords in development mode.
To build the application for production, use:
npm run build
npm start