The frontend part of a simple chat app with weather API. Check out the backend part here.
Chatter.demo.mov
- Run
npm -vto make sure you havenpminstalled. Read more about npm. - Since this is the frontend app, before running it you first need to pull and run the backend app.
- For example, if the backend project is in the same directory as your frontend project, you can use this script to run the backend server (with DB) with
brewon macOS:
- For example, if the backend project is in the same directory as your frontend project, you can use this script to run the backend server (with DB) with
cd .. && cd ChatterService && cd ChatterService && brew services start mongodb-community && dotnet run
or
npm run start-server
In the project directory, run:
-
npm installto install dependencies. -
npm startto run the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Runs all tests in the project.
Runs the tests that match the provided test substring.
Builds the app for production to the build folder.
Stops MongoDB (community edition, using brew).
There are some things that I could have done better, have I had more time or put more thought into it. Below is the checklist of things I can improve.
- Implement auth (incl. admin functionality)
- Make user and room validation more robust
- Migrate to
pnpm - Migrate to
nextjs