Technologies Getting Started API Endpoints Useful
Simple chatting application
Tool / Technology | Description | Source |
---|---|---|
Express | Backend | Express |
Next.js 14 | Frontend | Next.js |
Socket.io | Low-latency communication tool | Socket.io |
MongoDB | Database for storing messages | MongoDB |
Next UI | Used to style a big part of the application | NextUI |
Tailwind CSS | Used as a CSS framework | Tailwind CSS |
Docker | Used to dockerize the application using a single compose file | Docker |
This documentation contains the process of building and running the app using Docker. If you want to manually start frontend and backend, please visit /frontend and /backend directories.
git clone https://github.com/daddyDOT/evolt-junior-project.git
Use the .env.example
as reference to create your configuration file .env
with your MongoDB Credentials
MONGODB_URI="mongodb+srv://username:password@cluster..."
CLIENT_URL="http://frontend:3000"
Environment variables for frontend are located in ./frontend/next.config.mjs
Important
Since this docker build requires express to be installed locally first, do:
cd backend/
npm install express --save
Don't forget to go back to the root directory for next step
cd evolt-junior-project
docker compose build
docker compose up
route | description |
---|---|
GET /messages | retrieves messages from database |