4 Commits

11 changed files with 84 additions and 25 deletions

8
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

8
.idea/ScoreSpot.iml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="CPP_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/copilot.data.migration.agent.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AgentMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

6
.idea/copilot.data.migration.ask.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AskMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Ask2AgentMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

6
.idea/copilot.data.migration.edit.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EditMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

8
.idea/icon.svg generated Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ScoreSpot.iml" filepath="$PROJECT_DIR$/.idea/ScoreSpot.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@@ -56,7 +56,7 @@ With its sophisticated tech setup, ScoreSpot brings innovation to soccer stat tr
**Once the following dependencies above are installed navigate to the top of the repsoitory and copy the following link:** **Once the following dependencies above are installed navigate to the top of the repsoitory and copy the following link:**
> <https://github.com/LucasPatenaude/ScoreSpot.git> > <https://gitlab.com/lucaspatenaude/ScoreSpot.git>
**Using a Git GUI or the terminal select a location to store the repository. In this example, I'll store it in a folder called `programming` in the home directory** **Using a Git GUI or the terminal select a location to store the repository. In this example, I'll store it in a folder called `programming` in the home directory**
@@ -88,8 +88,7 @@ With its sophisticated tech setup, ScoreSpot brings innovation to soccer stat tr
`git clone https://github.com/LucasPatenaude/ScoreSpot.git` `git clone https://github.com/LucasPatenaude/ScoreSpot.git`
> 💡 TIP 💡 > [!IMPORTANT]
>
> Congragulations! ScoreSpot should now be cloned into `~/programming` > Congragulations! ScoreSpot should now be cloned into `~/programming`
--- ---
@@ -116,8 +115,7 @@ With its sophisticated tech setup, ScoreSpot brings innovation to soccer stat tr
`docker-compose up -d` `docker-compose up -d`
> 💡 TIP 💡 > [!IMPORTANT]
>
> Congragulations! ScoreSpot should now be deployed on your server at port 3000 > Congragulations! ScoreSpot should now be deployed on your server at port 3000
> >
> To enter your ScoreSpot deployment enter `localhost:3000/` into your browser's addess bar > To enter your ScoreSpot deployment enter `localhost:3000/` into your browser's addess bar
@@ -166,8 +164,7 @@ With its sophisticated tech setup, ScoreSpot brings innovation to soccer stat tr
} }
``` ```
> 💡 TIP 💡 > [!IMPORTANT]
>
> Congragulations! ScoreSpot should now show it's test results on bootup > Congragulations! ScoreSpot should now show it's test results on bootup
> >
> To view the test results navigate to Docker and open the container's logs > To view the test results navigate to Docker and open the container's logs

View File

@@ -140,9 +140,9 @@ app.get("/club/:clubID", [fetchClubsData], (req, res) => {
// <!-- Section 5 : API Routes --> // <!-- Section 5 : API Routes -->
// ***************************************************** // *****************************************************
/************************ // ************************
Login Page Routes // Login Page Routes
*************************/ // *************************
// Redirect to the /login endpoint // Redirect to the /login endpoint
app.get("/", (req, res) => { app.get("/", (req, res) => {
@@ -189,9 +189,9 @@ app.post("/login", async (req, res) => {
} }
}); });
/************************ // **************************
Registration Page Routes // Registration Page Routes
*************************/ // **************************
// Render registration page for /register route // Render registration page for /register route
app.get("/register", (req, res) => { app.get("/register", (req, res) => {
@@ -245,9 +245,9 @@ app.post("/register", async (req, res) => {
} }
}); });
/************************ // *************************
Home Page Routes // Home Page Routes
*************************/ // *************************
app.get("/home", (req, res) => { app.get("/home", (req, res) => {
const loggedIn = req.session.user ? true : false; const loggedIn = req.session.user ? true : false;
@@ -266,25 +266,25 @@ app.get("/logout", (req, res) => {
}); });
}); });
/************************ // *************************
League Page Routes // League Page Routes
*************************/ // *************************
// Import and call generateLeagueRoutes function // Import and call generateLeagueRoutes function
const generateLeagueRoutes = require("./routes/league-pages/generate-league-routes"); const generateLeagueRoutes = require("./routes/league-pages/generate-league-routes");
generateLeagueRoutes(app); generateLeagueRoutes(app);
/************************ // *************************
Club Page Routes // Club Page Routes
*************************/ // *************************
// Import and call generateLeagueRoutes function // Import and call generateLeagueRoutes function
const generateClubRoutes = require("./routes/club-pages/generate-club-routes"); const generateClubRoutes = require("./routes/club-pages/generate-club-routes");
generateClubRoutes(app); generateClubRoutes(app);
/************************ // *************************
Favorite Team Database // Favorite Team Database
*************************/ // *************************
// Function to add a new row to the FavoriteTeams table // Function to add a new row to the FavoriteTeams table
// database configuration // database configuration