wajeht / closed-carrot

closed carrot: amarillo's tech hub website

Home Page:https://closed-carrot.jaw.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ₯• Closed Carrot: Amarillo's Tech Hub

Node.js CI Discord Open Source Love svg1

closed carrot: amarillo's tech hub website

πŸ“š Technologies

  • Node with Express for API
  • MongoDB and Mongoose for database and modeling
  • React with Vite tooling for UI
  • Vitest for unit testing
  • TailwindCSS for rapid styling
  • GitHub Actions for CI/CD
  • SwaggerDocs for API documentation
  • React Query for data fetching on React
  • react-icons for icons
  • adminJS for CRUD operation dashboard

🏭 Enviroment

staging/dev environment

https://closed-carrot.jaw.dev/

πŸ‘¨β€πŸ’» Getting started

install docker

https://www.docker.com/

copy contents inside of .env.example into .env

$ cp .env.example .env

run project

$ docker compose up

wait until you get the following messages.

app            | [EXPRESS] db connection started!
app            | [EXPRESS] Express server is running at http://localhost:8080

visit project at

http://localhost:8081 # with hmr

🌎 URLs

for react built dist with express serving the dist files as static (will be used for prod)

http://localhost:8080

for real time reloading when any css or api file changes (highly recommended)

http://localhost:8081

for api documentation

http://localhost:8080/docs/api/

admin panel for CRUD operation

http://localhost:8080/admin

for local mongodb UI

http://localhost:8082

for email testing

http://localhost:8025

🐳 Docker/Make commands

to start docker containers with output

$ docker compose up        # make up

to start docker containers without output

$ docker compose up -d     # make up-d

to stop docker containers

$ docker compose down      # make down

to view docker containers log (previously must run docker compose up -d)

$ docker compose logs -f    # make log

to clean remove docker containers

$ docker compose down --rmi all   # make clean

to run tests

$ docker compose exec app npm run test   # make test

to run lint

$ docker compose exec app npm run lint    # make lint

to run formatting code

$ docker compose exec app npm run format    # make format

πŸ› οΈ Others

Online PNG compression

https://www.freeconvert.com/compress-png

Β© License

Distributed under the MIT License Β© wajeht. See LICENSE for more information.

About

closed carrot: amarillo's tech hub website

https://closed-carrot.jaw.dev/

License:MIT License


Languages

Language:JavaScript 97.7%Language:HTML 1.0%Language:CSS 0.8%Language:Makefile 0.3%Language:Shell 0.1%