You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-8Lines changed: 44 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,30 @@
1
1
If you are coming from a specific video, you can have a look at the commits, they are named like: 'video-01: asd', 'video-02: asd', so you can switch to a commit/merge commit and see what exactly had been done, since this repo is currently evolving and sometimes parts of it are rewritten in newer videos.
2
+
Hint: Upon 2022 the new features are not prefixed like this anymore (cause there isn't a video for every step anymore).
2
3
3
-
# instructions to run the project
4
-
## 1. Switch to branch develop to get the latest changes
5
-
## 2. Add an environment file to the project
4
+
# Updated 2022 (Project now dockerized)
5
+
This Project is now dockerized.
6
+
We have one Dockerfile for the api (NestJS) and one for the frontend(Angular).
7
+
On the top file level there is a `docker-compose.yml` file that you can start, there is also the database and everything configured. So you don't need to do anything else than run `docker-compose up`.
8
+
9
+
# Instructions to run the Project
10
+
11
+
## With Docker
12
+
Command:
13
+
`docker-compose up`
14
+
and then visit `localhost:4200`
15
+
16
+
### Tipps & Tricks for docker
17
+
If you need to remove docker images or containers you can use one of the following commands.
18
+
19
+
Command to remove all images:
20
+
`docker rmi -f $(docker images -a -q)`
21
+
22
+
Command to remove all containers:
23
+
`docker rm -vf $(docker ps -a -q)`
24
+
25
+
26
+
## Without Docker
27
+
### 2. Add an environment file to the project
6
28
Add a .env file in the api folder (at the top of your api folder, so nest can find it)
7
29
- add your own DATABASE_URL in the .env file
8
30
- add your own JWT_SECRET in the .env file
@@ -21,17 +43,17 @@ Example of file:
21
43
JWT_SECRET=jklasjdoij897231na
22
44
23
45
24
-
## Start the Backend in dev Mode after you added the .env file
46
+
###Start the Backend in dev Mode after you added the .env file
25
47
`cd api`
26
48
`npm install`
27
49
`npm run start:dev`
28
50
29
-
## Start the Frontend in dev Mode after you added the .env file
51
+
###Start the Frontend in dev Mode after you added the .env file
0 commit comments