scratch-up
v1.0.2
Published
Creates code structure with frontend, backend, proxy, database & cache layer. With maintaining focus on ease of development on local & deployment as a container system. Has abstract functions and services for basic functionalities. Written in Typescript.
Downloads
8
Maintainers
Readme
Scratch-Up
USE : npx scratch-up myApp
A framework to generate structure with frontend, backend, proxy, database & cache layer. With maintaining focus on ease of development on local & deployment as a container system.
Initialises code & structure with basic functionalities, enabling you to focus on application logic.
Get Started with : npx scratch-up myApp
Setup & Customize as per your needs.
Configuration
- database : Postgres
- cache layer : Redis
- proxy : Nginx
- frontend : React based, Express hosted (Typescript)
- backend : Express based server (Typescript)
- Test Framework : Jest
- containerization : Docker
Pre-Requisite
- Nodejs
- Docker & Docker-Compose
- Good Internet : First-time running
docker-compose up
fetches image for Postgres, Nginx, Nodejs & Redis.
Getting Started
(on linux : use sudo as required)
- Setup with :
npx scratch-up myApp
- Start Application :
docker-compose up
For Local Development
- Start proxy, database & cache with:
docker-compose -f start--proxy-and-databases.yml up
- Start backend :
- Change directory to backend
- Run :
npm install
- Run:
npm run start:dev
- Start frontend :
- Change directory to frontend
- Run:
npm install
- Run:
npm run start:dev
Code base is documented with function definitions & examples.
View Application at : http://localhost
Upcoming
- Tests
- Proper Documentation with website
- Admin Panel
Contact
Write at : [email protected]