Skip to content

Commit fe28552

Browse files
authored
Update final project dependencies (#17)
Update all server and client dependencies for 2024.
1 parent 08e3181 commit fe28552

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+17857
-32053
lines changed

.github/workflows/cypress-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
env:
1313
# Server environment variables
14-
PORT: 5000
14+
PORT: 3000
1515
MONGODB_URL: ${{ secrets.CYPRESS_MONGODB_URL }}
1616
# Client environment variables
17-
BASE_SERVER_URL: http://localhost:5000
17+
BASE_SERVER_URL: http://localhost:3000
1818

1919
steps:
2020
- name: Checkout
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup server and client
2525
run: npm run setup
2626
- name: Cypress run
27-
uses: cypress-io/github-action@v2
27+
uses: cypress-io/github-action@v6
2828
with:
2929
# start up the dev environment
3030
start: npm run dev

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ coverage
1313
.env
1414

1515
# Cypress videos from our headless runs should not be pushed to github
16-
cypress/videos
16+
cypress/videos
17+
cypress/screenshots

DEV.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To start developing, make sure you have created the `.env` files and did the set
1010

1111
The client will be built using `webpack`. The configuration for that is in the `webpack.config.js` file. When running in production the command `npm run build` will be run which will create a `dist` folder with the compiled version of the code. When running in dev mode the `webpack-dev-server` will build it in memory. This will also automatically rebuild on file changes!
1212

13-
Our client will always run on `https://localhost:8080`. So if it does not automatically open your browser you can go to that URL. It will connect to the URL put in the `.env` file, defaulting to `https://localhost:5000`.
13+
Our client will always run on `https://localhost:8080`. So if it does not automatically open your browser you can go to that URL. It will connect to the URL put in the `.env` file, defaulting to `https://localhost:3000`.
1414

1515
You will also notice that to connect to the server our `useFetch` hook adds `/api` to the url. This is because on `heroku` our backend not only has its own routes but also hosts the client code. This way it allows us to differentiate between what needs to return the client code and what is an actual request to our backend.
1616

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
`TODO: Add a nice screenshot of the app!`
22

3-
# Class XX final project
3+
# Cohort XX final project
44

5-
This is the final project for the HackYourFuture curriculum we did as a class using the MERN stack by following the agile methodology with our team and a group of mentors. A quick guide to what we built:
5+
This is the final project for the HackYourFuture curriculum we did as a cohort using the [MERN stack](https://www.mongodb.com/resources/languages/mern-stack) by following the agile methodology with our team and a group of mentors. A quick guide to what we built:
66

77
> TODO: Add short description of the app
88

client/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# If you add variables here, then don't forget to also add it to the webpack.config file so it gets loaded
22

33
# The URL that the frontend will use to connect to the backend
4-
BASE_SERVER_URL=http://localhost:5000
4+
BASE_SERVER_URL=http://localhost:3000

0 commit comments

Comments
 (0)