Smatter is a Twitter-like social media page. We use it as a code base for applicants to complete tasks as part of the interview process.
Theres a frontend package and a backend package. The frontend is built with React with Vite, and the backend is a web API built with Node.js and Express. The backend uses a MongoDB database.
-
Install Dependencies
Run the following command in the project root, and in each packagenpm install
-
Start the Database
Run the following command in the backend package to start your database in a Docker container:npm run start-db
-
Start the App
Run the following command in the project root to start both the backend and frontend:npm run dev
The frontend is served on port 5173, and the API can be accessed on port 3001.