Git Product home page Git Product logo

lame-site's Introduction

🥳 LAME SITE v3 🥳

This is the third major iteration of the website located at https://www.lamemakes.com. The lastest version implements unit testing + linting, more dynamic loading, and cleaner formatting.

The website was built with the intention of being nearly a fully static website. Previously auto-generated JSON files are fulled from the host and are used to populate different components of the site (projects, music, picture directories). Example object structures can be found in the test directory, with the name "test_".

The HOST constant can be found in main.ts. Changing this constant will globally change where the previously mentioned JSON requests are pulled from.

Setup & install the lame-site

npm install --global yarn                          # install yarn
git clone https://github.com/lamemakes/lame-site   # clone the repo
cd lame-site
yarn install --frozen-lockfile                     # install dependencies

NOTE: If running the vite dev server locally and using our own remote apache server containing statically hosted JSON files (ie. pulling from "yourdomain.com/projects.json"), it is required to enable CORS for JSON files. This can be done by adding the following lines in your .htaccess file (usually located in public_html/).

<FilesMatch "\.(json)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
</FilesMatch>

This lets Apache know to only allow CORS for JSON files.

Run the development server

yarn dev

Run Unit Tests with Vitest

yarn test:unit

Format with Prettier in the project root directory

yarn prettier . --write

Lint with ESLint

yarn lint

Build for production

yarn build

Notes

  • Unit tests are a WIP, fighting with Jest to get proper API mocks.
  • The JSON static files are updates with an "admin panel" ran on my local machine that makes it wasy to generate, upload, and modify previous projects/images

lame-site's People

Contributors

lamemakes avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.