Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Routes Skeleton #1

Merged
merged 2 commits into from
Dec 16, 2021
Merged

API Routes Skeleton #1

merged 2 commits into from
Dec 16, 2021

Conversation

JaedanC
Copy link
Contributor

@JaedanC JaedanC commented Dec 16, 2021

Includes all variables and routes currently defined by the Google Sheet with the expectation they will be implemented at a future date.

@benrobson benrobson merged commit ed17a28 into api-skeleton Dec 16, 2021
@JaedanC JaedanC deleted the api-skeleton-jaedan branch December 16, 2021 06:34
benrobson added a commit that referenced this pull request Dec 29, 2021
* Start folder and package structure.

* Modularise main site.

* Commit dummy home page.

* Changed DB info

* Commit Procfile

* Moved location

* Made picture and content changes.

* Changes to stats and features.

* Commit

* Style footer.

* Made style changes.

* Implement Legal and worked on index.

* Commit dashboard

* Push template Player Check

* Commit Events and additional styles.

* Add formatting for rank view and creator.

* Create KB, ranks and servers.

* Implemented /play

* Implemented Knowledgebase front end and changed index again.

* Hid Service Features and labelled WIP in areas that need it.

* Commit db structre

* Commit /play and /kb progress.

* Start work on community creations

* Create api branch and folders.

* API Routes Skeleton (#1)

* Templated routes for future implementation
* dateTime given a unique name to not conflict with SQL

* Update dbinit.sql (#2)

Update dbinit.sql to match new database schema.

* Schema skeleton (#5)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Schema skeleton (#6)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Completed some user and application endpoints.

* Added endpoints for kb and server, upped icon for kb section.

* Commit progress on ranks and event.

* Added to kb and started SDD

* Make kb use slugs and not ids.

* Started and stalled community creations.

* Added more CC and event endpoints.

* Feat web skeleton (#3)

* Commit starting gallery for community creations.

* Commit final layout.

* File shake up.

* Designed /apply, added links at top and bottom.

* Implemented /events

* Implement vote and change top and bottom nav.

* Add /staff and templated formatting.

* Implemented test banners and added custom header paths.

* Added another banner, added miniHeader for template.

* Added punishments and edited login and logout

* Added /login and /register

* Commit dash progress.

* Push kb and Server backend UI

* Push sdd and various changes.

* Finished dashboard views, need chartjs

* Commit imgs and shop create.

* Commit shop create changes.

Co-authored-by: shadowolf <[email protected]>

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>
benrobson added a commit that referenced this pull request Dec 31, 2021
* Start folder and package structure.

* Modularise main site.

* Commit dummy home page.

* Changed DB info

* Commit Procfile

* Moved location

* Made picture and content changes.

* Changes to stats and features.

* Commit

* Style footer.

* Made style changes.

* Implement Legal and worked on index.

* Commit dashboard

* Push template Player Check

* Commit Events and additional styles.

* Add formatting for rank view and creator.

* Create KB, ranks and servers.

* Implemented /play

* Implemented Knowledgebase front end and changed index again.

* Hid Service Features and labelled WIP in areas that need it.

* Commit db structre

* Commit /play and /kb progress.

* Start work on community creations

* Create api branch and folders.

* API Routes Skeleton (#1)

* Templated routes for future implementation
* dateTime given a unique name to not conflict with SQL

* Update dbinit.sql (#2)

Update dbinit.sql to match new database schema.

* Schema skeleton (#5)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Schema skeleton (#6)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Completed some user and application endpoints.

* Added endpoints for kb and server, upped icon for kb section.

* Commit progress on ranks and event.

* Added to kb and started SDD

* Make kb use slugs and not ids.

* Started and stalled community creations.

* Added more CC and event endpoints.

* Added statistics route for player disconnect statistics from Bukkit plugin

* Schema skeleton - added tables: minecraftItems, userStats (#8)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Update dbinit.sql

Add minecraftItems table to schema.

* Update dbinit.sql

Add userStats table to schema.

* Update dbinit.sql

Update userVerify table TRIGGERS to not need the DELIMITER keyword. Making the dbinit.sql file possible to run from command line.

* Update dbinit.sql

Add triggers to keep the updatedDate columns updated. Also fixed typo  for column name in appealComments table.

* Add mcimages.csv to assets\minecraft folder. And created loadItems.sql to load that data into the minecraftItems table.

* Update dbinit.sql

Add BEFORE INSERT trigger to communityCreationImages table so that the position column auto_increments independently for each creationId.

* Resolve merging conflicts.

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>
Co-authored-by: JaedanC <[email protected]>
benrobson added a commit that referenced this pull request Feb 1, 2022
…and player profiles. (#18)

* Api skeleton (#7)

* Start folder and package structure.

* Modularise main site.

* Commit dummy home page.

* Changed DB info

* Commit Procfile

* Moved location

* Made picture and content changes.

* Changes to stats and features.

* Commit

* Style footer.

* Made style changes.

* Implement Legal and worked on index.

* Commit dashboard

* Push template Player Check

* Commit Events and additional styles.

* Add formatting for rank view and creator.

* Create KB, ranks and servers.

* Implemented /play

* Implemented Knowledgebase front end and changed index again.

* Hid Service Features and labelled WIP in areas that need it.

* Commit db structre

* Commit /play and /kb progress.

* Start work on community creations

* Create api branch and folders.

* API Routes Skeleton (#1)

* Templated routes for future implementation
* dateTime given a unique name to not conflict with SQL

* Update dbinit.sql (#2)

Update dbinit.sql to match new database schema.

* Schema skeleton (#5)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Schema skeleton (#6)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Completed some user and application endpoints.

* Added endpoints for kb and server, upped icon for kb section.

* Commit progress on ranks and event.

* Added to kb and started SDD

* Make kb use slugs and not ids.

* Started and stalled community creations.

* Added more CC and event endpoints.

* Feat web skeleton (#3)

* Commit starting gallery for community creations.

* Commit final layout.

* File shake up.

* Designed /apply, added links at top and bottom.

* Implemented /events

* Implement vote and change top and bottom nav.

* Add /staff and templated formatting.

* Implemented test banners and added custom header paths.

* Added another banner, added miniHeader for template.

* Added punishments and edited login and logout

* Added /login and /register

* Commit dash progress.

* Push kb and Server backend UI

* Push sdd and various changes.

* Finished dashboard views, need chartjs

* Commit imgs and shop create.

* Commit shop create changes.

Co-authored-by: shadowolf <[email protected]>

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>

* Merge the API Hollywood Principle changes (#9)

* Added discord packages and put site routes into seperate files.

* Commit progress.

* Working on API integration with Discord and created slash command.

* Deleted some bot options and changed dep body-parser setting.

* Hollywood principle for app/DiscordClient for all API routes

* Implemented discord endpoints.

* Added starting Slash Commands.

Co-authored-by: shadowolf <[email protected]>

* Api skeleton (#10)

* Start folder and package structure.

* Modularise main site.

* Commit dummy home page.

* Changed DB info

* Commit Procfile

* Moved location

* Made picture and content changes.

* Changes to stats and features.

* Commit

* Style footer.

* Made style changes.

* Implement Legal and worked on index.

* Commit dashboard

* Push template Player Check

* Commit Events and additional styles.

* Add formatting for rank view and creator.

* Create KB, ranks and servers.

* Implemented /play

* Implemented Knowledgebase front end and changed index again.

* Hid Service Features and labelled WIP in areas that need it.

* Commit db structre

* Commit /play and /kb progress.

* Start work on community creations

* Create api branch and folders.

* API Routes Skeleton (#1)

* Templated routes for future implementation
* dateTime given a unique name to not conflict with SQL

* Update dbinit.sql (#2)

Update dbinit.sql to match new database schema.

* Schema skeleton (#5)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Schema skeleton (#6)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Completed some user and application endpoints.

* Added endpoints for kb and server, upped icon for kb section.

* Commit progress on ranks and event.

* Added to kb and started SDD

* Make kb use slugs and not ids.

* Started and stalled community creations.

* Added more CC and event endpoints.

* Added statistics route for player disconnect statistics from Bukkit plugin

* Schema skeleton - added tables: minecraftItems, userStats (#8)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Update dbinit.sql

Add minecraftItems table to schema.

* Update dbinit.sql

Add userStats table to schema.

* Update dbinit.sql

Update userVerify table TRIGGERS to not need the DELIMITER keyword. Making the dbinit.sql file possible to run from command line.

* Update dbinit.sql

Add triggers to keep the updatedDate columns updated. Also fixed typo  for column name in appealComments table.

* Add mcimages.csv to assets\minecraft folder. And created loadItems.sql to load that data into the minecraftItems table.

* Update dbinit.sql

Add BEFORE INSERT trigger to communityCreationImages table so that the position column auto_increments independently for each creationId.

* Resolve merging conflicts.

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>
Co-authored-by: JaedanC <[email protected]>

* Create dummy feature file.

* Updated website routes to use Hollywood Principle

* Implement /events/publish to have Discord functionality. (#12)

* Added logic to catch ids that don't exist.

* Implemented /events/publish with Discord announcements.

* Implement node-fetch and made all some pages dynamic via API. (#14)

* Website now fetching with API for /events and starting on /play

* Added no-repeat 50% 50% to banners and made /play dynamic.

* Changed /server/get query to visible

* Make /apply dynamic

* Passed fetch and make /rank dynamic in dashboard.

* Changed from create to editor to duel template.

* Push more fetch changes for events.

* Change res.json to res.redirect.

* Implement guild.scheduledEvents.create and endpoint changes. (#13)

* Add basic template for /:user profile. (#15)

* Start work on user profiles.

* Start layout of sections.

* Finalise formatting of stats.

* Migrate from ExpressJS to Fastify, migrate templates and routes, multiple db changes. (#16)

* Start module refactor.

* Start export default on main routes.

* export default function more siteRoutes

* Finish exporting all site routes.

* Complete export default function in all apiRoutes.

* Change all package and file const to import.

* Resolved issues with error alert not displaying.

* Revert ping command.

* Resolve miniHeader in kb and dbController.

* Commit progress with fastify migration.

* Using app.get instead of app.route

* Complete / migration and displaying with ejs rendering engine.

* Commit progress.

* Fastify routes for API + URLEncoded POST request support

* API hooks have been given a verifyToken hook to pass

* Clean up app.js and remove old packages.

* Refactor all site routes to fastify with config import.

* Hollywooded API routes with config and database

* Put all baseEndpoints inside of export default to register.

* Replace .view with .render

* Remove duplicate files from /

* Refactor miniHeader and missing reply.render

Co-authored-by: JaedanC <[email protected]>

* Implemented start of knowledgebase and more backend dynamics. (#17)

* Start module refactor.

* Start export default on main routes.

* export default function more siteRoutes

* Finish exporting all site routes.

* Complete export default function in all apiRoutes.

* Change all package and file const to import.

* Resolved issues with error alert not displaying.

* Revert ping command.

* Resolve miniHeader in kb and dbController.

* Commit progress with fastify migration.

* Using app.get instead of app.route

* Complete / migration and displaying with ejs rendering engine.

* Commit progress.

* Fastify routes for API + URLEncoded POST request support

* API hooks have been given a verifyToken hook to pass

* Clean up app.js and remove old packages.

* Refactor all site routes to fastify with config import.

* Hollywooded API routes with config and database

* Put all baseEndpoints inside of export default to register.

* Replace .view with .render

* Remove duplicate files from /

* Refactor miniHeader and missing reply.render

* Resolve issues with dashboard routes.

* Actually fix ranks ;-;

* Remove old duplications.

* Commit progress on fetch-kb

* Implemented custom view for error rather than displaying JSON.

* Resolve issue with passing of routes.

* kb pulling sections and not items yet.

* Servers now dynamically display in dashboard.

* Made kb section and article dynamic.

* Added button to rank and kb icon

Co-authored-by: JaedanC <[email protected]>

* Add variable options for port.

* Remove unused images and restructure views.

* Make changes to app.listen for fastify.

* Change procfile command.

* Change port location.

* Start working on register and login form routes.

* Implemented authentication and sessions.

* Start making profile dynamic.

* Commit profile changes and reports.

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>
Co-authored-by: JaedanC <[email protected]>
benrobson added a commit that referenced this pull request Feb 7, 2022
…age. (#24)

* Api skeleton (#7)

* Start folder and package structure.

* Modularise main site.

* Commit dummy home page.

* Changed DB info

* Commit Procfile

* Moved location

* Made picture and content changes.

* Changes to stats and features.

* Commit

* Style footer.

* Made style changes.

* Implement Legal and worked on index.

* Commit dashboard

* Push template Player Check

* Commit Events and additional styles.

* Add formatting for rank view and creator.

* Create KB, ranks and servers.

* Implemented /play

* Implemented Knowledgebase front end and changed index again.

* Hid Service Features and labelled WIP in areas that need it.

* Commit db structre

* Commit /play and /kb progress.

* Start work on community creations

* Create api branch and folders.

* API Routes Skeleton (#1)

* Templated routes for future implementation
* dateTime given a unique name to not conflict with SQL

* Update dbinit.sql (#2)

Update dbinit.sql to match new database schema.

* Schema skeleton (#5)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Schema skeleton (#6)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Completed some user and application endpoints.

* Added endpoints for kb and server, upped icon for kb section.

* Commit progress on ranks and event.

* Added to kb and started SDD

* Make kb use slugs and not ids.

* Started and stalled community creations.

* Added more CC and event endpoints.

* Feat web skeleton (#3)

* Commit starting gallery for community creations.

* Commit final layout.

* File shake up.

* Designed /apply, added links at top and bottom.

* Implemented /events

* Implement vote and change top and bottom nav.

* Add /staff and templated formatting.

* Implemented test banners and added custom header paths.

* Added another banner, added miniHeader for template.

* Added punishments and edited login and logout

* Added /login and /register

* Commit dash progress.

* Push kb and Server backend UI

* Push sdd and various changes.

* Finished dashboard views, need chartjs

* Commit imgs and shop create.

* Commit shop create changes.

Co-authored-by: shadowolf <[email protected]>

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>

* Merge the API Hollywood Principle changes (#9)

* Added discord packages and put site routes into seperate files.

* Commit progress.

* Working on API integration with Discord and created slash command.

* Deleted some bot options and changed dep body-parser setting.

* Hollywood principle for app/DiscordClient for all API routes

* Implemented discord endpoints.

* Added starting Slash Commands.

Co-authored-by: shadowolf <[email protected]>

* Api skeleton (#10)

* Start folder and package structure.

* Modularise main site.

* Commit dummy home page.

* Changed DB info

* Commit Procfile

* Moved location

* Made picture and content changes.

* Changes to stats and features.

* Commit

* Style footer.

* Made style changes.

* Implement Legal and worked on index.

* Commit dashboard

* Push template Player Check

* Commit Events and additional styles.

* Add formatting for rank view and creator.

* Create KB, ranks and servers.

* Implemented /play

* Implemented Knowledgebase front end and changed index again.

* Hid Service Features and labelled WIP in areas that need it.

* Commit db structre

* Commit /play and /kb progress.

* Start work on community creations

* Create api branch and folders.

* API Routes Skeleton (#1)

* Templated routes for future implementation
* dateTime given a unique name to not conflict with SQL

* Update dbinit.sql (#2)

Update dbinit.sql to match new database schema.

* Schema skeleton (#5)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Schema skeleton (#6)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Completed some user and application endpoints.

* Added endpoints for kb and server, upped icon for kb section.

* Commit progress on ranks and event.

* Added to kb and started SDD

* Make kb use slugs and not ids.

* Started and stalled community creations.

* Added more CC and event endpoints.

* Added statistics route for player disconnect statistics from Bukkit plugin

* Schema skeleton - added tables: minecraftItems, userStats (#8)

* Update dbinit.sql

Update dbinit.sql to match new database schema.

* Update dbinit.sql

Add closed column to the applications table

* Update dbinit.sql

Add VoteSites table, and update votes table to reference it instead of a text based "service".

* Update dbinit.sql

add title to userRanks table

* Add userVerifyId column to replace verificationTokan as Primary Key. Update verificationToken to be VARCHAR(16)

* Add TRIGGER to userVerify table to auto generate the verificationToken when a new row is added.

* Add TRIGGER to userVerify table to insert the verifiedOn date automatically when verified is set to 1 (TRUE).

* Update dbinit.sql

Add minecraftItems table to schema.

* Update dbinit.sql

Add userStats table to schema.

* Update dbinit.sql

Update userVerify table TRIGGERS to not need the DELIMITER keyword. Making the dbinit.sql file possible to run from command line.

* Update dbinit.sql

Add triggers to keep the updatedDate columns updated. Also fixed typo  for column name in appealComments table.

* Add mcimages.csv to assets\minecraft folder. And created loadItems.sql to load that data into the minecraftItems table.

* Update dbinit.sql

Add BEFORE INSERT trigger to communityCreationImages table so that the position column auto_increments independently for each creationId.

* Resolve merging conflicts.

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>
Co-authored-by: JaedanC <[email protected]>

* Create dummy feature file.

* Updated website routes to use Hollywood Principle

* Implement /events/publish to have Discord functionality. (#12)

* Added logic to catch ids that don't exist.

* Implemented /events/publish with Discord announcements.

* Implement node-fetch and made all some pages dynamic via API. (#14)

* Website now fetching with API for /events and starting on /play

* Added no-repeat 50% 50% to banners and made /play dynamic.

* Changed /server/get query to visible

* Make /apply dynamic

* Passed fetch and make /rank dynamic in dashboard.

* Changed from create to editor to duel template.

* Push more fetch changes for events.

* Change res.json to res.redirect.

* Implement guild.scheduledEvents.create and endpoint changes. (#13)

* Add basic template for /:user profile. (#15)

* Start work on user profiles.

* Start layout of sections.

* Finalise formatting of stats.

* Migrate from ExpressJS to Fastify, migrate templates and routes, multiple db changes. (#16)

* Start module refactor.

* Start export default on main routes.

* export default function more siteRoutes

* Finish exporting all site routes.

* Complete export default function in all apiRoutes.

* Change all package and file const to import.

* Resolved issues with error alert not displaying.

* Revert ping command.

* Resolve miniHeader in kb and dbController.

* Commit progress with fastify migration.

* Using app.get instead of app.route

* Complete / migration and displaying with ejs rendering engine.

* Commit progress.

* Fastify routes for API + URLEncoded POST request support

* API hooks have been given a verifyToken hook to pass

* Clean up app.js and remove old packages.

* Refactor all site routes to fastify with config import.

* Hollywooded API routes with config and database

* Put all baseEndpoints inside of export default to register.

* Replace .view with .render

* Remove duplicate files from /

* Refactor miniHeader and missing reply.render

Co-authored-by: JaedanC <[email protected]>

* Implemented start of knowledgebase and more backend dynamics. (#17)

* Start module refactor.

* Start export default on main routes.

* export default function more siteRoutes

* Finish exporting all site routes.

* Complete export default function in all apiRoutes.

* Change all package and file const to import.

* Resolved issues with error alert not displaying.

* Revert ping command.

* Resolve miniHeader in kb and dbController.

* Commit progress with fastify migration.

* Using app.get instead of app.route

* Complete / migration and displaying with ejs rendering engine.

* Commit progress.

* Fastify routes for API + URLEncoded POST request support

* API hooks have been given a verifyToken hook to pass

* Clean up app.js and remove old packages.

* Refactor all site routes to fastify with config import.

* Hollywooded API routes with config and database

* Put all baseEndpoints inside of export default to register.

* Replace .view with .render

* Remove duplicate files from /

* Refactor miniHeader and missing reply.render

* Resolve issues with dashboard routes.

* Actually fix ranks ;-;

* Remove old duplications.

* Commit progress on fetch-kb

* Implemented custom view for error rather than displaying JSON.

* Resolve issue with passing of routes.

* kb pulling sections and not items yet.

* Servers now dynamically display in dashboard.

* Made kb section and article dynamic.

* Added button to rank and kb icon

Co-authored-by: JaedanC <[email protected]>

* Add variable options for port.

* Remove unused images and restructure views.

* Make changes to app.listen for fastify.

* Change procfile command.

* Change port location.

* Add simple authentication and registration, reports and report cards and player profiles. (#20)

* Start working on register and login form routes.

* Implemented authentication and sessions.

* Start making profile dynamic.

* Commit profile changes and reports.

* Add passport packages and social media buttons.

* Reverted passport changes.

* Worked more  on Passport Discord authentication.

* Implement Knowledgebase and fix issues with node. (#22)

* Comitt progress.

* KB articles now in sections, working on standalone pages

* Remove action from appeal and friend and add assert for json.

* KB pages working and added node version

* Added note about NVM

* Changed to nvm-windows.

* Added /profile/:username and /profile/edit to nav

* Removed logging

* Change to staging url

* Change back to development address

* Commit progress.

* Revert passport changes.

Co-authored-by: Jaedan Calder <[email protected]>
Co-authored-by: Aron Brown <[email protected]>
Co-authored-by: JaedanC <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants