0.1.8 • Published 3 months ago

@sundaysf/cli v0.1.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

Sundays Framework Backend Setup

Welcome to the Sundays Framework for backend development! This project is part of the Sundays development methodology, which focuses on scalable, efficient, and easy-to-maintain backend applications. The framework streamlines development, allowing you to focus on features instead of boilerplate code.

Installation

To install the Sundays Framework and initialize the backend, run the following command:

npx @sundaysf/cli --init --backend

This will install the necessary dependencies and set up the project structure tailored for backend development.

Creating a Controller

To add a controller with essential CRUD operations (including GET, GET By UUID, UPDATE, DELETE, and CREATE), run the following command:

npm run create:controller

You will be prompted to provide a name for your new controller. Once created, the controller will include all the necessary routes and methods.

Development Setup

For development, use the following commands:

  • Start Development Server:
    Runs the backend with nodemon for auto-reloading during development:
npm run start:dev
  • Build Project:
    Transpiles the TypeScript code to JavaScript (or your chosen transpiler):
npm run build
  • Start Production Server:
    Runs the backend in production mode:
npm run start

Docker Support

The project comes with a Dockerfile to help you quickly set up the environment using Docker. You can build and run the project within a container for easy deployment.

To build the Docker image:

docker build -t your-image-name .

To run the container:

docker run -p 3098:3098 your-image-name

This will run the application inside a Docker container, making it easy to deploy or share across different environments.

0.1.8

3 months ago

0.1.7

3 months ago

0.1.6

3 months ago

0.1.5

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.1.0

3 months ago

0.0.21

3 months ago

0.0.20

3 months ago

0.0.19

3 months ago

0.0.18

3 months ago

0.0.17

3 months ago

0.0.16

3 months ago

0.0.15

3 months ago

0.0.14

3 months ago

0.0.13

3 months ago

0.0.12

3 months ago

0.0.11

3 months ago

0.0.10

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago