- Create folder structure
- Create
index.html
-
Create a new repo for blog posts
-
Create a directory to clone the repo into
mkdir devlog
-
Clone the repo
cd devlog git clone <devlog URL>
-
Create a directory for blog posts
mkdir blog
-
Create 1st Blog Post
touch blog/post1.md code blog/post1.md
# A Blog Post Texty texty texty
-
Open blog folder in VS Code, add to workspace & save as a project
-
Set
GitHub -> Pages -> Source
tomain
-
Set
GitHub -> Pages -> Folder
to/blog
-
Create a basic index page
touch index.md code index.md
# Those Who Came Before - [First Post](blog/post1.md)
- Acquire custom domain?
- Add
CNAME
file with domain name to repo
-
Create a Jekyll theme
-
Create
_config.yml
for Jekyll configuration -
Add this code to
_config.yml
:theme: minima
-
Add Jekyll front matter to posts
--- layout: post title: "First Post" ---
-
Customize theme CSS
- Create tasks
-
Make sure
index.html
works -
Move
index.html
topublic/
& make sure it still works -
Add this code to
index.html
:<div id="root"></div>
-
Add this code to
src/app.js
:import React from 'react'; function App() { return ( <div> <h1>Those Who Came Before</h1> <p>Welcome to the game!</p> </div> ); } export default App;
-
Check
index.html
now shows the code fromsrc/app.js
-
Add this code to
src/index.jsx
:import React from 'react'; function App() { return ( <div> <h1>Those Who Came Before</h1> <p>Welcome to the game!</p> </div> ); } export default App;
-
Add this code to
src/styles/global.css
:body { margin: 0; font-family: Arial, sans-serif; background-color: #f0f0f0; color: #333; }
-
Add this code to
README.md
:# Those Who Came Before Those Who Came Before is a narrative game where players, as historians, interpret artefacts and make inferences about ancient cultures. Each decision impacts future interpretations, creating a unique and engaging gameplay experience. ## Setup 1. Clone the repository 2. Install dependencies: `npm install` 3. Start the development server: `npm start` ## Folder Structure - `public/` - Contains the static HTML file - `src/` - Contains the React components, styles, and data - `assets/` - Contains images and other static assets - `components/` - Contains React components - `context/` - Contains context providers - `hooks/` - Contains custom hooks - `styles/` - Contains CSS files - `utils/` - Contains utility functions - `data/` - Contains initial JSON data for artefacts and cultures
- State Management: Create tasks for
Context API
(orRedux
if necessary) - Styling: Create tasks for
CSS
Modules or styled-components - Build Tools: Create tasks for
Webpack
orCreate React App
- Data Handling: Create tasks for
JSON
for initial data (artefacts and cultures) - Procedural Generation: Create tasks for
JavaScript
&Tracery
for generating artefacts and cultures