clone the repository from git [https://github.com/ditinex/MERN]
Add your name to the backend env file. Frontend will call an API and will get a response with your name. Then your name will be shown in the frontend.
- Get into the backend folder by running "cd backend" on the terminal.
- Run "npm install" or "npm i" on the terminal to install the required node modules.
- Create a new file .env on the root, copy the code from .env.example file to .env file.
- Replace the DB credentials and add your name to the env variable NAME.
- Now run "npm start" to run the backend.
- If the database is connected you can see "DB Connected" on the terminal / log.
- Get into the frontend folder by running "cd frontend" on the terminal.
- Run "npm install" or "npm i" on the terminal to install the required node modules.
- Create a new file .env on the root, copy the code from .env.example file to .env file. Replace the API url with your node API URL.
- Now run "npm run build" and it should provide you the build files in frontend/build directory.