All Projects → SpaceApi → website

SpaceApi / website

Licence: other
The spaceapi.io website.

Programming Languages

SCSS
7915 projects
HTML
75241 projects
python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to website

schema
SpaceAPI JSON schema files.
Stars: ✭ 20 (+42.86%)
Mutual labels:  hackerspace, spaceapi
welcome
a virtual hackerspace for open-source contributors 🍿☕
Stars: ✭ 41 (+192.86%)
Mutual labels:  hackerspace
nodeLHC-ESP32
Hardware aberto e colaborativo nodeLHC
Stars: ✭ 28 (+100%)
Mutual labels:  hackerspace
incubator
Django hackerspace website for UrLab
Stars: ✭ 17 (+21.43%)
Mutual labels:  hackerspace
trollibox
The hackerspace friendly music player web client
Stars: ✭ 35 (+150%)
Mutual labels:  hackerspace
tc-maker-4x4-router
Restoration and documentation of custom-built 4x4' CNC router at Twin Cities Maker hackerspace (aka the Hack Factory) in Minneapolis, MN.
Stars: ✭ 14 (+0%)
Mutual labels:  hackerspace

spaceapi.io

GitHub CI Docker Image

These are the sources for the SpaceAPI website.

The website is generated using Lektor, a static site generator written in Python. This simplifies hosting and makes the website very fast.

Dev Setup

Variant A: Virtualenv

Prerequisites:

  • Python 3
  • npm

Create and activate a virtualenv:

python3 -m venv VENV
source VENV/bin/activate

Install dependencies:

pip install -U -r requirements.txt

Run dev server:

lektor server -f scsscompile

Now open http://localhost:5000/ in your browser.

Variant B: Docker

Prerequisites:

  • Docker

To use docker you can run:

docker build -t website -f Dockerfile_dev .
docker run -v $(pwd):/code -it -p5000:80 website

Then open http://localhost:5000

Adding an App/Library/Tool (aka "Stuff")

With Lektor

  1. Fork this repository on GitHub
  2. Run the dev setup as described above.
  3. Go to http://localhost:5000/admin/root:stuff/preview and press the "+" icon in the top left part of the navigation to add a new subpage
  4. Choose the model "Stuff" and pick a title. An appropriate id will be automatically suggested.
  5. Click "Add Child Page"
  6. Fill out the form. To add a screenshot, click on "Add Attachment" in the left navigation.
  7. Commit the changes in the file system and submit the changes as a pull request against the upstream project

Without Lektor

  1. Fork this repository on GitHub
  2. In the content/stuff/ directory, copy one of the existing models and adjust it
  3. Make sure to replace the screenshot image with an image of your own
  4. Commit the changes in the file system and submit the changes as a pull request against the upstream project

Deployment

The website should auto-deploy after a push to master. The update might take a few minutes though.

Schema Docs

Schema documentation is generated from the schema. To update:

python3 generate_schema_docs.py ../schema/13.json > content/docs/contents.lr
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].