Giter VIP home page Giter VIP logo

clancommunity's Introduction

Clan Community

The project is done using React framework with Tailwind CSS for the frontend and Rust with Rocket for the API.

  1. Frontend I used a MVVM architecture to implement the frontend using React and Taliwind CSS. The foundation is up and running and after going into the frontend directory and running it, you can view the work I did on the https://localhost:3000.

  2. API The api is done using Rocket, which is a web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility, usability, or type safety.

Installation

To run automatically, install Docker and run:

docker network create caddy
docker compose -f docker-compose.yml  up --build -d

This will start your services as close to production as possible, just not available at the normal domain but on localhost.

Docker will eat up all your disk space with build cache, so you might want to clean it up from time to time. To do so, run

docker system prune

and confirm with y.

To delete unused Docker images and containers, you can use the following commands:

docker image prune -a
docker container prune

Without docker

To run manually, install dependencies and run:

cd frontend
pnpm
pnpm dev

I like to use pnpm, but yarn or npm should work as well. To install pnpm, run npm install -g pnpm, which you might need superuser-rights for.

Rust API

Install Rust: https://www.rust-lang.org/learn/get-started

Development

cd api
cargo watch -x run

Production

cd api
cargo run --release

Of course, you can also install dependencies with npm (then the start script is npm run dev). To install yarn, run npm install -g yarn, which you might need superuser-rights for.

clancommunity's People

Contributors

blendaniel avatar

Watchers

 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.