|
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;">) |
2 | 2 |
|
3 | | -## Getting Started |
| 3 | +# Locklite |
4 | 4 |
|
5 | | -First, run the development server: |
| 5 | +🔐 Intranet password manager for |
| 6 | +businesses [](https://github.com/vbetsch/lockLite/actions) |
6 | 7 |
|
7 | | -```bash |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +[//]: # (## Asserts) |
| 22 | + |
| 23 | +[//]: # (- [ASSERT_NAME](ASSERT_PATH)) |
| 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 |
8 | 111 | npm run dev |
9 | | -# or |
10 | | -yarn dev |
11 | | -# or |
12 | | -pnpm dev |
13 | | -# or |
14 | | -bun dev |
15 | 112 | ``` |
16 | 113 |
|
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 |
18 | 120 |
|
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 |
20 | 122 |
|
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 |
22 | 128 |
|
23 | | -## Learn More |
| 129 | +```shell |
| 130 | +npm run test:cov |
| 131 | +``` |
24 | 132 |
|
25 | | -To learn more about Next.js, take a look at the following resources: |
| 133 | +<h2 id="linux">Linux</h2> |
26 | 134 |
|
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 |
29 | 136 |
|
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. |
31 | 138 |
|
32 | | -## Deploy on Vercel |
| 139 | +2. You need to install NodeJS packages |
33 | 140 |
|
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 | +``` |
35 | 144 |
|
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