- Linux
- nodejs >= 16.x
- mongodb >= 5.0
- redis >= 5.0
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt-get install -y nodejs
Install mongodb. See MongoDB Installation Guides
Create a new user
use aiverify
db.createUser({user:"aiverify",pwd:"aiverify",roles:["readWrite"]})
Install redis server. See Redis Installation Guide
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
Update /etc/redis/redis.conf and set notify-keyspace-events to Kh
notify-keyspace-events Kh
To customize the default environment, you can create a .env.local file in the project root directory. This will override the .env defaults set.
Make sure that mongodb and redis server are running before starting the application.
npm run dev
npm run start
npm run test