This project was built with Vite and Tailwind CSS.
Expand table of contents
The latest version of the design prototype is available via this Figma link
Branch | Build URL |
---|---|
main |
openmaze.io |
staging |
staging.openmaze.io |
You need to version the project to ensure cache is automatically renewed for end users. Commit your changes like you normally do, but before pushing run one of the following commands depending on your changes:
npm version patch
for releases with only bug fixes;npm version minor
for releases with new features with or without bug fixesnpm version major
for major releases or breaking features
Next run git push origin development --tags
to push all created tags to the repository.
- Install NodeJS on your system
- Make sure Husky is installed globally. If not already, run
npm install -g husky
- Run the following commands in the terminal:
git clone https://github.com/Open-Maze/website.git`
npm install
npm run dev
- Open http://localhost:5173 to view it in the browser.
This directory holds all static file as well as some app icons, favicon and the app's manifest. You probably never have to edit these files.
Only edit the index.html
file to load external stylesheets.
This directory holds the main.jsx
file which initializes all top-level components and renders them to the index.html
file when building.\
This directory holds all fonts and local images used by the OpenMaze website. Most images are imported from the OpenMaze API.
All importable blocks are stored in this directory. These blocks are used to build the website's pages.
All reusable components are stored in this directory. Each component has its own subfolder containing a .jsx
file for the component itself, and a .css
file for styling rules specific to this component.
All .jsx
files in this directory form the logic needed for the website to work properly. Page routing and API requests are initialized in here.
This directory holds all pages or views of the OpenMaze website.
Only global stylesheets are located in this directory. Most styling is done through Tailwind CSS classes. But Tailwind CSS utility classes are initialized in these files.
In the project directory, you can run:
Installs the dependencies needed for this project.
Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the dist
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
OpenMaze website is ready to be deployed!
See the section about deployment for more information.
To learn React, check out the React documentation or follow this Udemy course.