Cat world is a student project. You can send letters to your friends, even if they are far away, and tell them about your life ! And, of course, your avatar is a cat.
# 1. install dependancies :
npm i
cd backend/
npm i
cd ../frontend/
npm i
# 2. To start dev server (**from the root directory**)
npm run devGo to : https://www.mongodb.com/try/download/community and download mongodb community server. You can also download compass to have a GUI.
Create a .env file and copy/paste the content of the .env example of the backend. Then replace the values with your own mongoDB database URI and app port.
Just copy/paste the .env example, it already has the correct URL to the API.
You can launch test on the backend with the following commands. Please add tests when creating new methods in the backend controllers.
cd backend/
npm run testCreate a branch to work on your feature. When you're done, create a pull request onto main. Once its merged, you can create another pull request from main to production if you want to push in prod your feature.
Before creating your pull request, please check that builds are working.
cd backend/
npm run build
cd ../frontend
npm run buildCat world is a PWA. You can install it by clicking on the share option of your phone navigator and then click on install app or pin app on homescreen.