Trying to figure out how to change the name. This project is meant to be a rapid platform that Angular apps and Demo's requiring web services can be rapidly prototyped. Up to date with Angular 16.
- Python (tested with 3.10.6)
- Node.js (tested with 18.16)
- npm
- pip
Clone the repository with "git clone https://github.com/totalknowledge/angular-launchpad.git"
- pip install -r requirements.txt
- npm install
If you wish to use SSL then generate the key and certificate files in the keys directory add them to the launchpad.conf file as "certfile" and "keyfile". Then define "ssl_port" in launchpad.conf as well.
npm start
The Angular.io documentation site is an excellent resource on where to start.
The web services can be accessed without any additional setup. If you want to use a collection, lets say Books, then simply start using the api of /api/books or /api/v0/books the API supports POST, PATCH, PUT, GET, and DELETE. Using our books example we have the following possible web services for Books
API Call | Result |
---|---|
/api/books | Returns the full collection of Books |
/api/books/{id} | Returns a single record with id of {id} |
API Call | Result |
---|---|
/api/books | Creates a new record in the collection, and returns the created record. |
API Call | Result |
---|---|
/api/books/{id} | Updates the record {id} with the new record sent via request. |
API Call | Result |
---|---|
/api/books/{id} | Updates the record {id} with a fragment of the record with updates made. |
API Call | Result |
---|---|
/api/books | Deletes all records in the collection. |
/api/books/{id} | Deletes record specified by {id}. |