Coder Social home page Coder Social logo

mol01 / kitspace-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kitspace/kitspace-v2

0.0 1.0 0.0 8.06 MB

Work in progress on using Gitea as the Kitspace backend.

License: GNU Affero General Public License v3.0

Dockerfile 0.22% JavaScript 85.33% Shell 0.75% SCSS 3.71% Python 1.46% CSS 4.98% HTML 3.55%

kitspace-v2's Introduction

Kitspace Using a Gitea Backend

work in progress

Docker workflow status badge

Re-writing Kitspace to use Gitea as a Git and authentication service.

Goals

Allow people to:

  1. Add projects without knowing Git/Github
  2. Still import/sync external Git repositories
  3. Edit/make improvements and propose these changes to project creators

Development

Set Up

  1. Get all the source code
git clone https://github.com/kitspace/kitspace-v2
cd kitspace-v2
git submodule update --init
  1. Install Docker and docker-compose (on Ubuntu: snap install docker and apt install docker-compose)
  2. Add the required lines to /etc/hosts (If you are not using Linux this probably won't work, please open an issue and we'll figure out how to support non-Linux development).
cat ./config/hosts | sudo tee -a /etc/hosts
  1. Copy the example .env
cp .env.example .env
  1. Build and run the docker containers
docker-compose up
  1. Go to gitea.kitspace.test:3000/user/sign_up and create a new user. This will be the admin user.

Frontend

The frontend is a NextJS server in the frontend directory. Making edits on the code should auto compile and reload at kitspace.test:3000.

Changing dependencies requires you to restart the development container:

cd frontend
yarn add <new dependency>
cd ..
docker-compose restart frontend

Gitea

This is built from a git submodule of our fork of Gitea.

When it first builds the docker container it builds the whole Gitea project (make clean-all build). When you restart the container it recompiles only the backend and doesn't recompile unchanged files (make backend).

Processor

This is a NodeJS and Express server that processes all the assets. As with the frontend, changing dependencies requires you to restart the development container.

Auto Deploys

This repo auto deploys the master branch (whether e2e tests pass or not) to our staging server.

We also auto deploy some development branches:

Ansible

We configure our staging servers using Ansible. Our playbooks and roles are in the ansible directory.

Running Integration Tests

  1. Make sure the frontend is being served at http://kitspace.test:3000; by following the Set Up steps.

  2. navigate to frontend: cd frontend/.

  3. Source the .env file with set -a && source ../.env && set +a

  4. Start the testing client with the npx cypress open command.

  5. The Cypress GUI should pop up.

  6. To run all tests, press Run all specs.

kitspace-v2's People

Contributors

abdulrhmnghanem avatar kasbah avatar dependabot[bot] avatar

Watchers

James Cloos 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.