This project was made with:
- Nodejs
- TypeScript
- Express
- Nodemon
- Lodash
- Loggers
- Json Web Tokens
- Zod
- pg
- Postgresql
- Docker
- Administrador de paquetes PNPM
You need to install:
You can choose one of them:
- You can use Docker
or
- You can use PostgreSQL
You can also install:
- Table plus, It can help you to manage your database.
-
Configure your environtments
- There's an file called .env.template and you need to change the name to .env
- Introduce the new data, all this data needs to be your own configuration.
-
Using docker:
- docker use environtment data to access to the database
docker-compose up -d
or
-
Using postgreSQL:
- You need to insert your own data in the file .env to start working
-
Run the queries from:
- Clone the repository:
git clone https://github.com/jom3/library_server.git
- Install the dependencies
pnpm install or pnpm i
- Run the server
pnpm run start
The application uses a logger for logging purposes. You can configure the logging level and format in the configuration files.