From 9b3b6fbac692e42318378c67c099870e6cc0e1ff Mon Sep 17 00:00:00 2001
From: ollanket <onni.ollanketo98@gmail.com>
Date: Fri, 23 Sep 2022 10:19:06 +0300
Subject: [PATCH] docs(api): Add local use steps to readme.md

---
 api/README.md            | 10 ++++++++++
 api/src/users/service.ts |  1 -
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/api/README.md b/api/README.md
index 6efb3e7..7e7b52e 100644
--- a/api/README.md
+++ b/api/README.md
@@ -1 +1,11 @@
 # api
+
+## Local use
+
+### Run at /api
+
+- Install deps: `yarn`
+- Start docker: `yarn test:up`
+- Migrate pg: `yarn testdb:up`
+- Build routes & run tsc: `yarn build`
+- Start the server: `yarn start`
diff --git a/api/src/users/service.ts b/api/src/users/service.ts
index 769ae77..9668fcf 100644
--- a/api/src/users/service.ts
+++ b/api/src/users/service.ts
@@ -22,7 +22,6 @@ export class UsersService extends BaseService implements IServiceMethods<User> {
   }
 
   public async get(id: number): Promise<User> {
-    console.log('asdsdsadsd')
     const user = await query.getUser.run({ id }, this.client)
     if (!user[0]) {
       throw new ApiError(
-- 
GitLab