Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vitor-silva27/guiadocampus-backend

API do 'Guia do Campus'! A API proporciona acesso fácil a informações essenciais sobre departamentos, salas de aula, serviços, horários no IFPI campus pedro II, simplificando a experiência dos alunos, professores e funcionários.
https://github.com/vitor-silva27/guiadocampus-backend

docker nodejs postgresql prisma-orm rest-api swagger typescript

Last synced: 9 days ago
JSON representation

API do 'Guia do Campus'! A API proporciona acesso fácil a informações essenciais sobre departamentos, salas de aula, serviços, horários no IFPI campus pedro II, simplificando a experiência dos alunos, professores e funcionários.

Awesome Lists containing this project

README

        




Logo

Guia do campus - API


View front end repo


Table of Contents



  1. About The Project



  2. Getting Started


  3. Usage

  4. Roadmap

  5. Contributing

  6. License

  7. Contact

  8. Acknowledgments

## About The Project

At IFPI Campus Pedro II, where I study, I noticed that despite having good infrastructure, internal communication faced challenges. Therefore, I developed a project using technologies such as QR codes and a website to enhance access to information about rooms and departments. The goal was to make communication more efficient and accessible, especially for students.

The basic idea is to distribute QR codes throughout the campus. Each department would have a QR code on the door that leads to the website's page for that specific department. This way, students would have instant access to information. If a student is not on campus, they can also access the website from home.

(back to top)

### Built With

#### Backend Technologies:

*


*


*


*


*


*


*


*

(back to top)

## Getting Started
1. first you will need a .env file with the values:
```
PORT=XXXX (The port you want to run your application)
DATABASE_URL=(the url of a postgres database)
TOKEN_KEY=(a secret token to generate jwt)
S3_BUCKET=(the name of a bucket in aws s3)
S3_REGION=(the region of you aws s3 server)

S3_ACCESS_KEY=(the access key to your aws)
S3_SECRET=(the secret access key to your aws)
```
2. now to install the dependencies and run the app you will have two choices, using docker or without docker

#### with docker is quite easy. you have to run:

* docker
```sh
docker build --pull --rm -f "Dockerfile" -t guiadocampus:latest "."
```
run migrations to setup your database
```sh
npx prisma migrate deploy
```
when it finish just run:
```sh
docker run -p 8080:80 guiadocampus:latest
```
then access your port 8080

#### if you don't have docker you will need node.js
* npm
```sh
npm i
```
run migrations to setup your database
```sh
npx prisma migrate deploy
```
and to run:

* for development:
```sh
npm run start:dev
```

* for production:
```sh
npm run build
```
```sh
npm run start
```

## Usage

to fully understand the usage see the [Documentation](https://guiadocampus-jln105qc.b4a.run/api)

## License

Distributed under the MIT License. See `LICENSE.txt` for more information.

(back to top)