-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update documentation files * Update package.json scripts and documentation files
- Loading branch information
Magnus Alexander Strømseng
authored and
GitHub
committed
Apr 23, 2024
1 parent
1db461b
commit 8e59010
Showing
10 changed files
with
1,360 additions
and
127 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
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,21 +1,13 @@ | ||
| # Documentation Folder | ||
|
|
||
| See `deployment.md` for info regarding deployment. | ||
|
|
||
| ## Overview | ||
| Welcome to the `docs/` directory! This folder is an essential part of the Hypso Outreach Portal project. It serves as a central repository for all our documentation-related materials. | ||
|
|
||
| ## Contents | ||
| In this folder, you will find a range of documents that support and explain the project. This includes but is not limited to: | ||
|
|
||
| - **User Guides:** Step-by-step guides and manuals for end-users, ensuring ease of use and accessibility of our platform. | ||
| - **Technical References:** References to technologies, frameworks, libraries, and tools used in the project. | ||
| Welcome to the `docs/` directory! It serves as a central repository for all our documentation-related materials. | ||
|
|
||
| Other information about the project is within the submitted report detailing architecture, reasoning and more. | ||
|
|
||
| ## Purpose | ||
| The primary purpose of this folder is to: | ||
| ## Contents | ||
|
|
||
| 1. **Organize Information:** Keep all documentation in one accessible location. | ||
| 2. **Facilitate Collaboration:** Provide team members with easy access to essential project information. | ||
| 3. **Support Maintenance:** Aid future developers in understanding and maintaining the system. | ||
| - [`./deployment.md`](./deployment.md) lists everything that needs to be done to deploy the server on an NTNU semi-managed server. | ||
| - [`./tech-stack.md`](./tech-stack.md) Quickly shows our tech stack and networking setup. | ||
| - [`./developing.md`](./deployment.md) Explains how to get started adding new pages and features. | ||
| - [`./design/`](./design/) Contains screenshots of our previous design iterations. | ||
| - [`./images/`](./images/) Contains images used in the docs. |
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 |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Developing | ||
|
|
||
| ## Requirements | ||
|
|
||
| This project requires you have installed [Node.js 20 LTS](https://nodejs.org/en/download). We recommend using [nvm](https://github.com/nvm-sh/nvm) to install multiple versions of node if necessary. | ||
|
|
||
| ## Running the project | ||
|
|
||
| To install all requirements simply do the following from the project root: | ||
|
|
||
| `npm i && cd ./frontend && npm i && cd ../backend && npm i && cd ..` This will run npm install in all the folders necessary. | ||
|
|
||
| Then do `npm run dev` from the root dir to run both the client and the server at the same time. | ||
|
|
||
| If this doesn't work you might have to enter and build the backend (strapi) first. | ||
| `cd backend` then `npm run build` | ||
|
|
||
| - The frontend should be accessible at http://localhost:3000 | ||
|
|
||
| - The backend should be accesible at http://localhost:1337/admin | ||
| - Here, you can create an admin user. | ||
|
|
||
| ## Strapi First time boot | ||
|
|
||
| Goto Settings > Users & Permissions plugin > Roles > Public > Article, and enable `find` and `findOne`. You need to do this for every publically available content type. Theese include but are not limited to: | ||
|
|
||
| - Article | ||
| - Author | ||
| - Hero | ||
| - Most-recent-image | ||
| - Project | ||
| - Satellite | ||
|
|
||
| The following should **NOT** be made publicly available: | ||
|
|
||
| - i18n | ||
| - Upload | ||
| - User-permissions | ||
|
|
||
| ## GraphQL Type generation | ||
|
|
||
| If you're using GraphQL, then you need to run `npm run compile` from `/frontend` whenever you update a schema or define a new graphQL request in the code. Make sure to import the correct `gql` as | ||
|
|
||
| ``` | ||
| import { gql } from"@/generated/gql"; | ||
| ``` | ||
|
|
||
| > Any errors in your code other than the GraphQL types, can result in the codegen not working, so make sure to fix all other errors before running the codegen. | ||
| > [https://www.apollographql.com/docs/react/development-testing/static-typing/](https://www.apollographql.com/docs/react/development-testing/static-typing/) | ||
| ## Strapi invite others | ||
|
|
||
| You can invite new admin users in `Settings > Administration panel > Users > Invite new user` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.