Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add admin panel #1

Merged
merged 8 commits into from
Sep 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: add document for preparing development environment.
hamza-cskn committed Sep 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ebe9a3056fc3a49d77de082ebfbf8d06d7fb3cfd
27 changes: 27 additions & 0 deletions prepare-dev-env.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Development Environment
To set up development environment which is highly sensitive for changes, run sh commands below (Prepared for MacOS and Linux). Your code changes will be processed instantly in this setup.

## Run MongoDB
```bash
docker run --rm -d -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=secret -p 27017:27017 mongo
```

## Run Blog Service
```bash
PORT=2000 API_TOKEN=123456 MONGO_URI=mongodb://root:secret@localhost:27017/comment?authSource=admin npm run start:dev --prefix blog
```

## Run Comment Service
```bash
PORT=2001 API_TOKEN=123456 MONGO_URI=mongodb://root:secret@localhost:27017/comment?authSource=admin npm run start:dev --prefix comment
```

## Run Authentication Service
```bash
PORT=2002 API_TOKEN=123456 npm run start:dev --prefix auth
```

## Run Website
```bash
PORT=5173 API_TOKEN=123456 AUTH_SERVICE_URI=http://localhost:2002 COMMENT_SERVICE_URI=http://localhost:2001 BLOG_SERVICE_URI=http://localhost:2000 npm run dev --prefix frontend
```