GithubHelp home page GithubHelp logo

dxfiscool / web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sushidesigner/web

0.0 0.0 0.0 22.17 MB

The Tadah Website

License: GNU Affero General Public License v3.0

Shell 0.37% JavaScript 2.73% PHP 59.02% Lua 4.05% Blade 30.38% Dockerfile 0.78% SCSS 2.68%

web's Introduction

Tadah

The Tadah Website

CI/CD

Tadah.Web is available on the Tadah CI. TeamCity builds the Docker image and uploads it to the Tadah internal Docker image registry (CI), and then tells the server to pull the newest image (CD).

Notes

  • Deploys are run on each push to dev. They are pushed to https://tadahlabs.rocks. Upon proper assessment, these updates can manually be pushed to production on https://tadah.rocks. The dev website is barred off and should only be accessible to developers. A mock database will be run on https://tadahlabs.rocks - it shall not be linked to the production database.
  • Do not force-push build artifacts, such as CSS or JavaScript assets generated from Laravel Mix. Laravel Mix gets run during the deploy process. Force pushing build artifacts will result in endless merge conflicts, and is generally bad practice.
  • Please submit bugs, issues, and features to add as an issue. New features should be a separate branch and should be a pull request once ready to merge with the trunk branch. The production branch should never be touched manually.
  • Please sign your commits.

Stack

Tadah uses a BALL stack; Bootstrap, Alpine, Livewire, Laravel. On the backend, we use PostgreSQL for our Database. Additionally, Redis is used for cache, Meilisearch is used for search, and Mailhog is used for mail environment simulation.

Docker is used both on the developer's environment (in the form of Laravel Sail) and on the production environment (in the form a fully independent Docker container.)

Local Environment

If on Linux, read steps starting from step 5. If on Windows, read all steps.

  1. Download and install Ubuntu (no version -- get generic) from the Microsoft Store
  2. Download and install Docker Desktop for Windows. Install WSL2 if need be.
  3. Enable Docker -> Ubuntu integration by opening Docker Desktop and navigating to Settings -> Resources -> WSL Integration and toggling Ubuntu
  4. Open your Ubuntu terminal. Navigate to where you are keeping the Tadah repository (i.e. if on C:\Tadah, you do cd /mnt/c/Tadah)
  5. Copy .env.example to .env. Line breaks might be malformed on Windows. If so, replace all occurrences of \r\n in .env with \n
  6. Run composer install if you don't have the composer dependencies installed yet.
  7. Run ./vendor/bin/sail up -d
  8. Generate the application keys:
    • App: ./vendor/bin/sail artisan key:generate
    • Pusher: ./vendor/bin/sail artisan pusher:secret
    • Ciphersweet: ./vendor/bin/sail artisan ciphersweet:key
    • Meilisearch: ./vendor/bin/sail artisan meilisearch:key
  9. Run ./vendor/bin/sail npm ci && npm run dev
  10. Run ./vendor/bin/sail artisan migrate if your migrations are not up already.
  11. You may now navigate to http://127.0.0.1 to view Tadah.

You may consult the Laravel Sail documentation for running Artisan and Composer commands.

License

Copyright (c) Tadah 2021-2022. All rights reserved. Not for public use.

Licensed under the GNU Affero General Public License v3.0. A copy of it has been included.

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.