![GitHub last commit](https://camo.githubusercontent.com/82f57901884a9721426fa002f6a925c8c169f1680c2c4f24548085685c8c2e5b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f416e647265774a426174656d616e2f696f6e69632d616e67756c61722d73716c6974653f7374796c653d706c6173746963)
- App allows user to add details of developer and products.
- Initial seed data is a short list of developers and dev skills.
![example screen print](./img/products-screen.png)
- Run
npm i
to install dependencies
- To start the server on localhost://8100 type: 'ionic serve'
database.service.ts
function to get details of a developer from the database that return a promise of format Dev
getDeveloper(id): Promise<Dev> {
return this.database.executeSql('SELECT * FROM developer WHERE id = ?', [id]).then(data => {
let skills = [];
if (data.rows.item[0].skills !== '') {
skills = JSON.parse(data.rows.item[0].skills);
}
return {
id: data.rows.item(0).is,
name: data.rows.item(0).name,
skills,
img: data.rows.item[0].img
};
});
}
- storage of data in an SQL database.
- Status: compiles and displays in a dev server. Build webpacks created. Needs implementing on an Android device or simulator to use database etc. Database side not tested.
- To-do: test database to see if it stores Dev and Product details.
- This project is licensed under the terms of the MIT license.