A client and server using moon application.
To begin, install globally the tools:
npm install --global pnpm
pnpm install -r
Once installed, run the following commands for common tasks:
moon check --all
- Run all tasks (below).moon run :build
- Build all projects.moon run :lint
- Lint code in all projects.moon run :test
- Run tests in all projects.moon run :format
- Format code in all projects.moon run :typecheck
- Type check code in all projects.
Tasks can also be focused to individual projects. The list of projects can be found in
.moon/workspace.yml
.
moon check <project>
moon run <project>:<task>
moon run <project>:dev
- For applications, starts the application in development mode.
moon run client:dev
- Runs the client in develop mode at localhost:3000moon run client:build
- Creates an production build
moon run server:dev
- Runs the database, proxy and updates database then starts the server at localhost:3001moon run server:start-proxy
- Runs only the proxymoon run server:start-db
- Runs only the the databasemoon run server:db-update
- Aplies migration to databasemoon run server:db-update
- Aplies seeders to database
The following tools are configured as moon tasks.
- ESLint
- Jest
- Prettier
- TypeScript
The following frameworks have been integrated into moon.