skrytka-app/README.md

17 lines
943 B
Markdown
Raw Normal View History

2023-03-12 14:08:35 +00:00
![Logo skrytki](skrytka-small.png)
2023-02-27 15:56:13 +00:00
# skrytka.app
2023-03-12 14:08:35 +00:00
![Badge z licencją AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-9cf)
2023-02-27 15:56:13 +00:00
To start this application you need to:
1. Configure database
- Install PostgreSQL DBMS
- Setup some database and user with permissions to it
- Create .env file in the main directory and fill it in with fields DB_USER, DB_PASS, DB_HOST, DB_PORT and DB_NAME. In case of confusion you may check exemplary .env file saved as .env.example in the root directory of this repository.
2. Run both SQL scripts, which are located in the main directory. For app to be usable it is also recommended to insert some data to the database.
2023-02-28 19:11:59 +00:00
3. Run `npm install` in the main directory.
4. Run `npm install` in the client directory.
5. Run `npm build` in the client directory.
6. Run `npm start` in the main directory
7. App will run on localhost:5000
Note: pm2 or/and nginx may be used to run this app for production