diff --git a/README.md b/README.md index d16e76c..12d0055 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ docker-compose up --build To set up this template in development mode: 1. Ensure mariadb is running in your development environment -2. Run `mariadb sql/create_database.sql` as the root user +2. Run `mariadb tools/create_database.sql` as the root user 3. Run `npm install` 4. Run `cp .envdev .env` and enter your details into the `.env` file 5. Execute `npm run dev` diff --git a/client/pages/accounts/account.jsx b/client/pages/accounts/account.jsx index eaf2cad..28693d2 100644 --- a/client/pages/accounts/account.jsx +++ b/client/pages/accounts/account.jsx @@ -23,9 +23,7 @@ const Account = props => { //grab the user's info useEffect(() => { - authTokens.tokenFetch(`${process.env.AUTH_URI}/auth/account`, { - method: 'GET' - }) + authTokens.tokenFetch(`${process.env.AUTH_URI}/auth/account`) .then(blob => blob.json()) .then(json => contactRef.current.checked = json.contact) .catch(e => console.error(e)) diff --git a/client/pages/administration/panels/news-editor.jsx b/client/pages/administration/panels/news-editor.jsx index 28cda33..8997127 100644 --- a/client/pages/administration/panels/news-editor.jsx +++ b/client/pages/administration/panels/news-editor.jsx @@ -18,12 +18,7 @@ const NewsEditor = props => { //run once useEffect(async () => { - const result = await fetch(`${process.env.NEWS_URI}/news/metadata?limit=999`, { - method: 'GET', - headers: { - 'Content-Type': 'application/json' - }, - }); + const result = await fetch(`${process.env.NEWS_URI}/news/metadata?limit=999`); if (!result.ok) { const err = `${result.status}: ${await result.text()}`; diff --git a/client/pages/panels/news-feed.jsx b/client/pages/panels/news-feed.jsx index 14d52dc..db5754c 100644 --- a/client/pages/panels/news-feed.jsx +++ b/client/pages/panels/news-feed.jsx @@ -8,10 +8,6 @@ const NewsFeed = props => { useEffect(() => { //this... um... fetch(`${process.env.NEWS_URI}/news`, { - method: 'GET', - headers: { - 'Content-Type': 'application/json' - }, signal: aborter.current.signal //oh dear }) .then(blob => blob.json()) diff --git a/client/pages/static/credits.jsx b/client/pages/static/credits.jsx index 130ea0f..4895527 100644 --- a/client/pages/static/credits.jsx +++ b/client/pages/static/credits.jsx @@ -2,15 +2,14 @@ import React from 'react'; const Static = props => { return ( - <> +
The MERN-template developed by Kayne Ruse, KR Game Studios
- > +