A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Nest framework TypeScript starter repository.
Final Project Assignment for Telerik Academy Aplpha with JavaScript - Design and implement single-page web application that will allow restaurant chefs to create and manage recipes composed of products with known nutrition values. During the interaction with the system users should see changes in nutrition information in real time. Newly created recipes could be tagged with a category from a list.
- Authenticate users - Register, Login, Logout
- Users can CRUD recipes
- Users can search list of recipes by name or filter by category
- Users can search for product and filter by product group
- MariaDB/MySQL
- TypeORM
- NestJS
Clone the repository
git clone https://github.com/JoomFX/chefsbook-backend.git
Switch to the repo folder
cd chefsbook-backend
Install dependencies
npm install
The example codebase uses Typeorm with a MariaDB database.
Create a new MariaDB database with the name recipes_db
(or the name you specified in the ormconfig.json).
MariaDb database settings are in ormconfig.json
.
Start local MariaDB server and create new database 'recipes_db'.
You will need a .env
file as well. You can modify the one included in the project.
You will also need to import the Sample Data (Products Database). All you need to do is to run npm run seed
.
npm start
- Start applicationnpm run start:dev
- Start application in nodemonnpm run typeorm
- run Typeorm commandsnpm run seed
- initial seed for the databasenpm run test
- run Jest test runner
There is a folder called documentation
where you can find an exported Postman Collection with all endpoints.