Skip to content

Commit 9890e5a

Browse files
committed
docs: Write README (#35)
* docs: Create README structure * docs: Replace html links by markdown links * test: Try a link syntax * fix: Use HTML links * revert: Use HTML links * docs: Add Quality Assurance in README * fix: file * Revert "fix: file" This reverts commit d6992d9. * docs: Add environment file step * test: Adding build status badge * feat: Add build status badge * feat: Add localhost links * feat: Add PRs badge * feat: Add last commit badge * fix: Remove badges not work * feat: Add icon in description
1 parent 85a4d67 commit 9890e5a

File tree

1 file changed

+161
-21
lines changed

1 file changed

+161
-21
lines changed

README.md

Lines changed: 161 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,176 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1+
[//]: # (<img src="LOGO_PATH" alt="LOGO_NAME" style="width: 500px;">)
22

3-
## Getting Started
3+
# Locklite
44

5-
First, run the development server:
5+
🔐 Intranet password manager for
6+
businesses [![Build Status](https://github.com/vbetsch/lockLite/actions/workflows/ci.yml/badge.svg)](https://github.com/vbetsch/lockLite/actions)
67

7-
```bash
8+
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
9+
![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)
10+
![Next JS](https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white)
11+
![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge&logo=vercel&logoColor=white)
12+
![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge&logo=postgresql&logoColor=white)
13+
![Prisma](https://img.shields.io/badge/Prisma-3982CE?style=for-the-badge&logo=Prisma&logoColor=white)
14+
![Swagger](https://img.shields.io/badge/-Swagger-%23Clojure?style=for-the-badge&logo=swagger&logoColor=white)
15+
![Jest](https://img.shields.io/badge/-jest-%23C21325?style=for-the-badge&logo=jest&logoColor=white)
16+
![MUI](https://img.shields.io/badge/MUI-%230081CB.svg?style=for-the-badge&logo=mui&logoColor=white)
17+
![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)
18+
![ESLint](https://img.shields.io/badge/ESLint-4B3263?style=for-the-badge&logo=eslint&logoColor=white)
19+
![Prettier](https://img.shields.io/badge/prettier-%23F7B93E.svg?style=for-the-badge&logo=prettier&logoColor=black)
20+
21+
[//]: # (## Asserts)
22+
23+
[//]: # (- [ASSERT_NAME]&#40;ASSERT_PATH&#41;)
24+
25+
### Dependencies
26+
27+
You have to install these softwares before starting :
28+
29+
- [**Docker** Engine](https://docs.docker.com/engine/install/)
30+
- [**Docker** Compose](https://docs.docker.com/compose/install/)
31+
- [**NodeJS** (v.22.17.1)](https://nodejs.org/en/blog/release/v22.17.1)
32+
33+
### Table of contents
34+
35+
Choose your operating system :
36+
37+
- [Windows](#windows)
38+
- [MacOS](#macos)
39+
- [Linux](#linux)
40+
41+
<h2 id="windows">Windows</h2>
42+
43+
We recommend using a WSL for this project. If so, please follow the [Linux](#linux) procedure.
44+
45+
### Installation
46+
47+
1. Create a `.env` file by copying the example file `.env.example` file. Replace the default values with your own.
48+
49+
2. You need to install NodeJS packages
50+
51+
```shell
52+
npm install
53+
```
54+
55+
### Getting Started
56+
57+
1. Start docker services with the following command
58+
59+
```shell
60+
docker-compose up -d
61+
```
62+
63+
2. Launch the application in development mode
64+
65+
```shell
66+
npm run dev
67+
```
68+
69+
3. Well done, the application is running!
70+
71+
- UI : http://localhost:3000/ui (homepage)
72+
- API : http://localhost:3000/api/docs (Swagger documentation)
73+
74+
### Quality Assurance
75+
76+
- Run unit tests
77+
78+
```shell
79+
npm test
80+
```
81+
82+
- Run unit tests with coverage
83+
84+
```shell
85+
npm run test:cov
86+
```
87+
88+
<h2 id="macos">MacOS</h2>
89+
90+
### Installation
91+
92+
1. Create a `.env` file by copying the example file `.env.example` file. Replace the default values with your own.
93+
94+
2. You need to install NodeJS packages
95+
96+
```shell
97+
npm install
98+
```
99+
100+
### Getting Started
101+
102+
1. Start docker services with the following command
103+
104+
```shell
105+
docker-compose up -d
106+
```
107+
108+
2. Launch the application in development mode
109+
110+
```shell
8111
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15112
```
16113

17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
114+
3. Well done, the application is running!
115+
116+
- UI : http://localhost:3000/ui (homepage)
117+
- API : http://localhost:3000/api/docs (Swagger documentation)
118+
119+
### Quality Assurance
18120

19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
121+
- Run unit tests
20122

21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
123+
```shell
124+
npm test
125+
```
126+
127+
- Run unit tests with coverage
22128

23-
## Learn More
129+
```shell
130+
npm run test:cov
131+
```
24132

25-
To learn more about Next.js, take a look at the following resources:
133+
<h2 id="linux">Linux</h2>
26134

27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
135+
### Installation
29136

30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
137+
1. Create a `.env` file by copying the example file `.env.example` file. Replace the default values with your own.
31138

32-
## Deploy on Vercel
139+
2. You need to install NodeJS packages
33140

34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
141+
```shell
142+
npm install
143+
```
35144

36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
145+
### Getting Started
146+
147+
1. Start docker services with the following command
148+
149+
```shell
150+
docker-compose up -d
151+
```
152+
153+
2. Launch the application in development mode
154+
155+
```shell
156+
npm run dev
157+
```
158+
159+
3. Well done, the application is running!
160+
161+
- UI : http://localhost:3000/ui (homepage)
162+
- API : http://localhost:3000/api/docs (Swagger documentation)
163+
164+
### Quality Assurance
165+
166+
- Run unit tests
167+
168+
```shell
169+
npm test
170+
```
171+
172+
- Run unit tests with coverage
173+
174+
```shell
175+
npm run test:cov
176+
```

0 commit comments

Comments
 (0)