Before you can start, make sure you have MongoDB installed and have started the port as specified in the MongoDB installation section.
- Start the database port
- Open a terminal in the directory: C:\Program Files\MongoDB\Server\4.4\bin
- You can do this by navigating to the directory and typing "cmd" in the address bar, then pressing enter
- To execute the command to expose the MongoDB port, you can use the following command in the terminal:
Make sure to keep the terminal open at all times while using the system, as it needs to be running to keep the MongoDB port exposed.
mongod
- To view the database, follow these steps:
- Open MongoDB Compass.
- Enter the URI
mongodb://localhost:27017
. - Click on the "Connect" button.
- Download and install Node.js: visit the official Node.js website at https://nodejs.org (NODE VERSION MUST BE
20.11.1
) - Clone this repository
git clone https://github.com/JaviFdez7/ISPP-G1-Talent.git
- Install the dependencies (from the root directory)
npm install
- Create .env file from .env.example file
GH_TOKEN=<YOUR-GH-TOKEN>
- Run the server Terminal 1 (frontend)
npm run install-frontend
npm run start-frontend
Terminal 2 (backend)
npm run install-backend
npm run start-backend
To create a module open a terminal it the root of the repoitory.
Then use create-backend-module MODULE_NAME VERSION
warning | MODULE_NAME must be written in snake-case |
info | VERSION is an optional argument (default is v1) |
For example:
create-backend-module team-creator
create-backend-module team-creator v2
- Navigate to the C drive directory on your computer and create a folder named 'data'.
- Access the 'data' folder and create a subfolder named 'db'.
-
Download MongoDB Compass on your computer from the following link: download link
-
During the MongoDB installation, uncheck the option to install MongoDB as a service.