Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsfoss0/git_exercise
Advanced git and version control concepts, tasks and practice exercises at Nexascale as a DevOps Engineering mentee. Gitting ready for GitOps
https://github.com/itsfoss0/git_exercise
Last synced: about 7 hours ago
JSON representation
Advanced git and version control concepts, tasks and practice exercises at Nexascale as a DevOps Engineering mentee. Gitting ready for GitOps
- Host: GitHub
- URL: https://github.com/itsfoss0/git_exercise
- Owner: Itsfoss0
- License: mit
- Created: 2024-03-11T12:26:41.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-15T08:10:15.000Z (8 months ago)
- Last Synced: 2024-05-01T16:39:32.547Z (6 months ago)
- Language: JavaScript
- Homepage: https://git-exercise.onrender.com/docs/
- Size: 273 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Bloglist API
### About
This is an API where users can store their favourite blogs. Other users can visit them and upvote or downvote, stackoverflow style.
### UsageAfter cloning this repository and navigating to `bloglist`, follow the steps listed below for local development
First, you'll need to source the `script.sh` file, or you could export the variables (_MONGO_URI_ and _PORT_) on your own in your shell, however, using the script is much faster.
```shell
[user@host]─[/home/user/Desktop/bloglist]
└──╼ # source script.sh[user@host]─[/home/user/Desktop/bloglist]
└──╼ # npm install[user@host]─[/home/user/Desktop/bloglist]
└──╼ # npm start
```### Boostrapping
There are custom git hooks in the `hooks` dir that you can setup to increase your productivity and ensure quality.
The `pre-commit` hook runs on every commit to run tests and check the code against linting guidelines. The `commit-msg` hook runs to check the commit message against the standards.To use the, create a sym link for the `hooks` dir to `.git/hooks/`