Coder Social home page Coder Social logo

reloadaxe / galadrim-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mle-moni/galadrim-tools

0.0 0.0 0.0 15.74 MB

Home Page: https://galadrim.mle-moni.fr/

License: GNU General Public License v2.0

Shell 0.40% JavaScript 0.92% TypeScript 94.58% CSS 3.66% HTML 0.44%

galadrim-tools's Introduction

Galadrim Tools

  • real time room booking tool
  • real time restaurant rating tool

galadrim tools home

see some other sample images here

Setup

  • yarn install
  • for the backend you will need a mysql database (docker setup)

Environment

on the frontend you need to create a .env you can copy and use the default .env.example

VITE_API_URL=http://localhost:3000/api
VITE_SOCKET_API_URL=http://localhost:3333

on the backend you need to create a .env you can copy and modify .env.example

the part you will need to adapt is the database connection settings

MYSQL_HOST
MYSQL_PORT
MYSQL_USER
MYSQL_PASSWORD
MYSQL_DB_NAME

Database

Docker mysql database

if you have docker/docker-compose installed, you can run

  • docker-compose up

it will launch a mysql server on the port 3310 you can edit this in docker-compose.yml

database setup

  • cd libs/shared
  • yarn build
  • cd ./apps/backend
  • node ace migration:run
  • node ace db:seed

Start project

  • yarn dev

โš ๏ธ when updating a file in libs/shared you might need to restart frontend watcher

Adonis CLI tool

on the backend you have access to a node script file ace: cd ./apps/backend node ace --help

you can read documentation about it here

some commands that you could need

# display all API routes with controller method used
node ace list:routes

# start a read-eval-print-loop with your project loaded
node ace repl

adonis repl documentation

Test project

When you write complex logic, try to write tests

to test all, you can run yarn test

or to test only one project, you can do yarn test:backend yarn test:frontend

Build project

yarn build:shared yarn build:backend yarn build:frontend

Contributing

  • fork the repo
  • create a branch: git checkout -b feat/awesomeNewFeature
  • commit and push your changes
  • make sure project can be built without errors, and tests still pass
  • create pull request

galadrim-tools's People

Contributors

mle-moni avatar matthieu-locussol avatar josephmarotte avatar mickaelrolland avatar padoue-galadrim avatar maxlmqr avatar toshiro1999 avatar reloadaxe avatar dderedec 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.