Welcome to the StudyBuddy project, a MERN (MongoDB, Express, React, Node.js) application. For the individual project course where given a Requirement Specification we choose our own tools and methods to complete the application. This was done in 2023
Before you start working with this project, make sure you have the following prerequisites in place:
I ran into a problem with older node versions i recommend using 19.5.0
Follow these steps to set up and run the project on your local machine:
-
Clone the repository:
git clone https://github.com/DavidPalmgren/testapp/ cd testapp -
Install backend dependencies:
npm install
-
Install frontend dependencies:
cd studyapp/frontend/my-react-app npm install -
Start the backend server. In the root directory (where
index.ejsis located), run one of the following commands:-
To run with Nodemon:
nodemon
-
To run with Node.js:
node index.ejs
-
-
Start the frontend React app. In the
my-react-appdirectory:npm start
-
Environment Variables: Create an
.envfile in theindex.ejsdirectory and add the following variables, which should have been provided to you:MONGO_URI='' PORT=4040 JWT_SECRET= JWT_EXPIRES_IN=
If you have any questions or need assistance, please contact @davee3 on Discord or via email at palmgrendavid@gmail.com.