EsTharian / adonisvelte-boilerplate

Basic dockerized boilerplate for AdonisJS and Svelte with Inertia.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ADONISVELTE

Adonisvelte is a boilerplate with Google authentication and authorization system. Using AdonisJS, Svelte with Inertia, TailwindCSS with SASS, PostgreSQL, Redis in Docker Compose.

Setup

To set up the development environment, firstly you need to install Docker Compose on your OS.

Copy the example dot-env file to use:

cp .env.example .env

Create OAuth 2.0 credentials for development purpose and set them in dot-env.

GOOGLE_CLIENT_ID=xxxxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=xxxxxxxxxxx

Run

All necessary tools and servers are running with Docker Compose. Before starting, install dependency packages:

docker-compose run -u $(id -u):$(id -g) node yarn install

To start development server:

# This won't start as a daemon if you don't pass `-d`
# and allow you to see verbose outputs
docker-compose up

To work easy, you can export aliases for your terminal:

source .aliases

Migrating

If you exported the aliases, you can migrate the database with:

node ace migration:run

About

Basic dockerized boilerplate for AdonisJS and Svelte with Inertia.


Languages

Language:TypeScript 84.6%Language:JavaScript 8.8%Language:Svelte 4.4%Language:SCSS 1.3%Language:Shell 0.9%