-
Clone the repository:
git clone https://github.com/NullPointError07/Text-Analyzer-Tool.git
-
Go to the project directory
cd Toxic Text-Analyzer-Tool -
Install dependencies
Make sure you have Node.js installed. Then run:
npm install
-
Environment Variables
Create a
.envfile in the root of the project and add necessary environment variables given below:PORT= MONGO_URI= SECRET=YOUR_OWN_SECRET_KEY GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET
-
Build the development Server
npm run build
-
Start the development Server
npm run start
You can see in server log
Server is running on http://localhost:YOUR_PORT -
Running Tests
To run tests with Jest, use the following command:
npx jest