-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working API server and Deployment (#37)
* Delete Angular Frontend We're starting over with a Express, NodeJS, and ReactJS tech stack with MySQL. * Add React Files Added files that were created from create-react-app * Remove .idea Removed Intellij project files that were associated with the angular frontend. * Organize DB files * Create Dockerfiles Create files for Docker deployment * Fix typo * Add Bootstrap Library * Remove Service Worker * Install ESLint * Fix Files to Conform to Style Guide I selected Airbnb style guide. We can always swtich * Start Work on React Frontend Components The plan should be to create basic components then to stich them together * Add UFSIT logo * Add WIP of Sidebar and Login component I have to see how I could use react better to create this components. Because rn I'm looking at style and not functionality. * Remove AWS integration and Google Calendar * Install react-bootstrap * Create Login Component Functionality is still needed to be created * Create UserManager Component Purpose is to mange larger application state * Remove AWS and Google Cal and Unneeded Routes Routes like Resume, Writeups, and custom tiles * Create component files * Add server.js file to run API server Completed additional refactoring of API server * Add Docker-Compose.yml Currently works for db service * Fix SQL error on account creation * Add comment * Add Dockerfiles and edits to docker-compose.yml * Fix Environment Variables * Create Working Iteration of Docker Deployment Good for dev and a good start for production * Add Documentation for Others to Follow Still need to do more investigation about the volume mounting for db
- Loading branch information
1 parent
44096b3
commit bfecaaa
Showing
28 changed files
with
1,417 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# dependencies | ||
/node_modules | ||
/Backend/node_modules | ||
/.pnp | ||
.pnp.js | ||
Backend/.env | ||
|
||
# testing | ||
/coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:alpine | ||
|
||
RUN mkdir -p /server | ||
WORKDIR /server | ||
|
||
COPY package*.json /server/ | ||
|
||
RUN npm install | ||
COPY . /server/ | ||
|
||
EXPOSE 1337 | ||
|
||
CMD ["node", "server.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
const routes = require('express').Router(); // eslint-disable-line new-cap | ||
const app_mgmt = require('./db/app_mgmt.js'); | ||
const routes = require('express').Router(); | ||
|
||
routes.get('/app/custom_tiles', async (req, res, next) => res.status(200).json(await app_mgmt.custom_tiles())); | ||
routes.get('/app/custom_tiles', async (req, res, next) => { | ||
|
||
}); | ||
|
||
routes.post('/app/tile_click', async (req, res, next) => { | ||
await app_mgmt.tile_click(req.session.account_id, req.body.id); | ||
res.status(200).send('Success'); | ||
|
||
}); | ||
|
||
routes.post('/app/ctf_click', async (req, res, next) => { | ||
await app_mgmt.ctf_click(req.session.account_id, req.body.id); | ||
res.status(200).send('Success'); | ||
|
||
}); | ||
|
||
module.exports = routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.