Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Intermentality/FS-FI_Web

Repository files navigation

Questions and Answers.

What does this project use?

  • Vite, frontend building tool to make the website easily.
  • TSX, which is both Typescript(Strict Javascript for no errors) and HTML in the same file.
  • React, this is the framework being used to use modules easily.
  • Shadertoy, we're using a NPM module of this to use create a background with GLSL.
  • Tailwind, this is a css framework to design websites quickly.

Important Modules

  • React Router, this is what's needed to make a single page application.

Why is React-router using HashRouter instead of BrowserRouter?

What sites host websites for free and where you don't need a domain for?

Both GitHub Pages and Cloudflare Pages offer free hosting for Single Page Applications. Single Page Applications are just websites with only one page with no reloading required to access other content (subpages in this case with routers).

How do I set it up?

  • You'll need to first upload a repository with GitHub.

  • I would recommend using GitHub desktop for this.

  • Then I would change the package.json to the website domain you're going to use.

  • GitHub: "username".github.io

  • Cloudflare: "repo-name".pages.dev

GitHub:

  • Make sure to head to your repo settings -> Pages.
  • Build and deployment should be from branch and root.
  • If this doesn't work, then you may need a .github/workflows/deploy.yml GitHub Deploy.yml

Cloudflare:

  • Build command: yarn build
  • Build output directory: /./dist

What is this based off of?

This whole project is based off of @0b5vr portfolio website.

The background is based off of Shadertoy.

Instillation for this project.

Local Computer

Either Yarn or NodeJS to install packages. Use CTRL+C to exit dev mode of each package manager if you ran it.

Yarn

Installing the packages with Yarn.

yarn install

Running dev with Yarn.

yarn dev

Adding packages from NPM.

yarn add [NPM Package-Name with no brackets]

NPM

Installing the packages with NPM.

npm install

Running dev with NPM.

npm run dev

Adding packages with NPM.

npm i [NPM Package-Name with no brackets]

Visual Studio Plugins

  • ESLint
  • Prettier

Development

How do I add more packages?

  • Use NPM to get more modules for react!
  • Make sure to have see a TS icon on the side of the name as well on NPM website!

Yarn (Adding/Removing)

    yarn add [NPM Package]
    yarn remove [NPM Package]

NPM (Adding/Removing)

    npm i [NPM Package]
    npm uninstall [NPM Package]

About

Food Scarcity and Food Insecurity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published