- Clone the repository.
git clone https://github.com/elebitzero/D-AI-react-chat.git
- Copy env.json to
local.env.jsonand change 'your-api-key-here' to your D-AI Key - Build & Run the web server
npm install
npm run start
The local website http://localhost:3000/ should open in your browser.
Run a simple auth server running at http://localhost:9001.
npm start
API routes expected by the frontend:
- POST
/api/user/login - POST
/api/user/create - GET
/api/user/me
PORT=9001
MONGODB_URI=mongodb://localhost:27017/cotton
JWT_SECRET=Your_secreat_key
All contributions are welcome. Feel free to open an issue or create a pull request.