Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Image for "Churrasco EIC" #328

Merged
merged 76 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
09773a5
Update main.yml
nelsontr Nov 4, 2023
ec34aef
Readme change (#253)
nelsontr Nov 4, 2023
bebde5e
Update main.yml
nelsontr Nov 4, 2023
f0d1020
Update main.yml
nelsontr Nov 4, 2023
132ffcc
Update dependency react-bootstrap to v2.9.1 (#245)
renovate[bot] Nov 5, 2023
2261b91
Update dependency react-select to v5.7.7 (#243)
renovate[bot] Nov 5, 2023
64dbff0
Update dependency react-router-dom to v6.18.0 (#232)
renovate[bot] Nov 5, 2023
095f7a5
Updating client/package-lock.json
nelsontr Nov 5, 2023
ab3a685
Update dependency natural to v6.8.0 (#244)
renovate[bot] Nov 6, 2023
fda3050
Update dependency html-react-parser to v5 (#249)
renovate[bot] Nov 19, 2023
ce5c916
Update dependency express-fileupload to v1.4.2 (#242)
renovate[bot] Nov 19, 2023
58cb0e3
Update dependency react-icons to v4.12.0 (#260)
renovate[bot] Nov 19, 2023
04e059b
Update renovate.json
nelsontr Dec 2, 2023
a60272b
Update renovate.json
nelsontr Dec 2, 2023
7705ced
changing node and npm version in github action
nelsontr Dec 8, 2023
93422dd
Axios Dependency Update (#268)
nelsontr Dec 8, 2023
65917f0
Update dependency react-select to v5.8.0 (#255)
renovate[bot] Dec 8, 2023
2b16c38
Update dependency @testing-library/react to v14.1.2 (#256)
renovate[bot] Dec 8, 2023
992f429
Update dependency react-router-dom to v6.20.1 (#261)
renovate[bot] Dec 8, 2023
25b94bd
Update dependency express-fileupload to v1.4.3 (#263)
renovate[bot] Dec 8, 2023
d8552e8
Bump @adobe/css-tools from 4.3.1 to 4.3.2 in /client (#264)
dependabot[bot] Dec 8, 2023
ba80066
Update dependency nodemon to v3.0.2 (#265)
renovate[bot] Dec 8, 2023
187ae15
Update dependency axios to v1.6.2 (#269)
renovate[bot] Dec 8, 2023
f54340a
remove unnecessary files
nelsontr Dec 8, 2023
29dea0e
Merge branch 'prod' into master
nelsontr Dec 8, 2023
60eb32d
Update dependency natural to v6.10.4 (#262)
renovate[bot] Jan 21, 2024
a06f0d2
Update dependency html-react-parser to v5.1.1 (#267)
renovate[bot] Jan 21, 2024
091139b
Update dependency axios to v1.6.5 (#275)
renovate[bot] Jan 21, 2024
7551695
Update dependency htmlparser2 to v9.1.0 (#276)
renovate[bot] Jan 21, 2024
5886841
Update appleboy/ssh-action action to v1.0.3 (#274)
renovate[bot] Jan 21, 2024
827cd64
Update actions/setup-node action to v4.0.1 (#272)
renovate[bot] Jan 21, 2024
24429a5
Update dependency nodemon to v3.0.3 (#281)
renovate[bot] Jan 21, 2024
99f2fbc
add BasedInLisbon logo to the website (#286)
Pereira2303 Feb 28, 2024
720209f
Bump follow-redirects from 1.15.4 to 1.15.6 in /server (#288)
dependabot[bot] Mar 19, 2024
741c485
Bump follow-redirects from 1.15.4 to 1.15.6 in /client (#287)
dependabot[bot] Mar 19, 2024
27aa0d9
Update dependency @testing-library/react to v14.2.1 (#284)
renovate[bot] Mar 19, 2024
8a1ae8f
Update dependency axios to v1.6.8 (#283)
renovate[bot] Mar 19, 2024
e4a7d41
Update dependency react-router-dom to v6.22.3 (#271)
renovate[bot] Mar 19, 2024
2ca4d9c
Update dependency react-icons to v5 (#282)
renovate[bot] Mar 19, 2024
6d04786
Update dependency dotenv to v16.4.5 (#280)
renovate[bot] Mar 19, 2024
d44946d
Update dependency autoprefixer to v10.4.18 (#279)
renovate[bot] Mar 19, 2024
2aba6e4
Update actions/setup-node action to v4.0.2 (#289)
renovate[bot] Mar 19, 2024
b7d00ba
Update dependency express to v4.18.3 (#291)
renovate[bot] Mar 19, 2024
0dbb0f5
Update dependency nodemon to v3.1.0 (#294)
renovate[bot] Mar 19, 2024
51a0bc0
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /client (#298)
dependabot[bot] Mar 23, 2024
815589d
Update dependency react-bootstrap to v2.10.2 (#273)
renovate[bot] Mar 31, 2024
9957a2d
Update dependency bootstrap to v5.3.3 (#290)
renovate[bot] Mar 31, 2024
7a46ea3
Update dependency express-fileupload to v1.5.0 (#292)
renovate[bot] Mar 31, 2024
efc86c2
Update dependency @testing-library/react to v14.2.2 (#295)
renovate[bot] Mar 31, 2024
a8f76ac
Update dependency autoprefixer to v10.4.19 (#297)
renovate[bot] Mar 31, 2024
4ca155e
Bump express from 4.18.2 to 4.19.2 in /client (#299)
dependabot[bot] Mar 31, 2024
b9c7c97
Bump express from 4.18.3 to 4.19.2 in /server (#300)
dependabot[bot] Mar 31, 2024
5b9a21a
Merge branch 'prod' into master
MrQuatrelle Apr 9, 2024
d03e9c8
Update package.json
MrQuatrelle Apr 9, 2024
0f4342c
Update collabs image (#313)
nelsontr May 16, 2024
8786c11
Bump ejs from 3.1.9 to 3.1.10 in /client (#312)
dependabot[bot] May 16, 2024
cb15e49
Update actions/checkout action to v4.1.6 (#311)
renovate[bot] May 16, 2024
99175bb
Update dependency @testing-library/react to v14.3.1 (#309)
renovate[bot] May 16, 2024
ac1d423
Update dependency react-icons to v5.2.1 (#308)
renovate[bot] May 16, 2024
bc0b2de
Update dependency react-multi-carousel to v2.8.5 (#303)
renovate[bot] May 16, 2024
f8031bb
Update dependency pg to v8.11.5 (#302)
renovate[bot] May 16, 2024
6a7a584
Update dependency html-react-parser to v5.1.10 (#285)
renovate[bot] May 16, 2024
7a78cc7
updating xlsx package
nelsontr May 16, 2024
6b23193
Update dependency react-router-dom to v6.23.1 (#314)
renovate[bot] May 16, 2024
45e0bf7
Update react monorepo to v18.3.1 (#315)
renovate[bot] May 16, 2024
a5d5cb3
docker-compose.yml build (#318)
nelsontr May 23, 2024
a5ac212
doc: correct installation md
nelsontr May 23, 2024
c433de2
chore(deps): update dependency nodemon to v3.1.2 (#321)
renovate[bot] Jun 3, 2024
dd51dc0
Update dependency axios to v1.7.2 (#317)
renovate[bot] Jun 3, 2024
568993e
Updated "Churrasco EIC" image (#324)
Francisca105 Jun 17, 2024
2399c2d
Bump braces from 3.0.2 to 3.0.3 in /server (#326)
dependabot[bot] Jun 17, 2024
651a913
chore(deps): update actions/checkout action to v4.1.7 (#325)
renovate[bot] Jun 17, 2024
bce6eff
fix(deps): update dependency pg to v8.12.0 (#323)
renovate[bot] Jun 17, 2024
1bdf18c
chore(deps): update dependency nodemon to v3.1.3 (#322)
renovate[bot] Jun 17, 2024
217fda7
Bump braces from 3.0.2 to 3.0.3 in /client (#327)
dependabot[bot] Jun 17, 2024
3e67d12
Merge branch 'prod' into churrascoEIC-prod
nelsontr Jun 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4.1.6
uses: actions/checkout@v4.1.7

- name: Setup Node
uses: actions/setup-node@v4.0.2
Expand Down
101 changes: 4 additions & 97 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<a href="https://neiist.tecnico.ulisboa.pt"><strong>Go to Website »</strong></a>
<br />
<br />
<!-- <a href="https://github.com/othneildrew/Best-README-Template">View Demo</a>
· -->
<a href="https://github.com/neiist-dev/neiist-website/issues">Report Bug</a>
·
<a href="https://github.com/neiist-dev/neiist-website/issues">Request Feature</a>
Expand Down Expand Up @@ -79,104 +77,13 @@ Of course, no one template will serve all projects since your needs may be diffe

A list of commonly used resources that I find helpful are listed in the acknowledgements. -->

### Built With
### Getting Started

> [React](https://reactjs.org/), [React Bootstrap](https://react-bootstrap.github.io/), [Node.js](https://nodejs.org/en/), [Express](http://expressjs.com/), [PostgreSQL](https://www.postgresql.org/)
* [Installation](./readme/installation.md)

### Built With

<!-- GETTING STARTED -->
## Getting Started

<!-- This is an example of how you may give instructions on setting up your project locally. -->
To get a local copy up and running follow these simple example steps.

### Prerequisites

<!-- This is an example of how to list things you need to use the software and how to install them. -->

* **Node.js** (Version 21.4.0)
```sh
sudo apt install nodejs
```

* **NPM** (Version 10.2.4)
```sh
sudo apt install npm
```

> ❗ You can also use Node Version Manager ([NVM](https://github.com/nvm-sh/nvm)) to install Node.js and NPM

* **PostgreSQL**
```sh
sudo apt install postgresql
```
...or use Docker ([see below](?tab=readme-ov-file#alternative-docker-for-database))

### Installation

1. Create a Fénix application with a Redirect Url of `http://localhost:3000/` and a Scope of `Informações` at [https://fenix.tecnico.ulisboa.pt/personal/external-applications/#/applications](https://fenix.tecnico.ulisboa.pt/personal/external-applications/#/applications)
2. Create a PostgreSQL database
```sh
sudo -i -u postgres
psql
CREATE DATABASE neiist;
\q
exit
```
3. Clone the repo
```sh
cd folder-where-i-keep-my-repos/
git clone https://github.com/neiist-dev/neiist-website.git
```
4. Server: Install NPM packages
```sh
cd server/
npm install
```
5. Server: Create .env file
```sh
cp .env.example .env
```
6. Server: Populate the .env file with your Fénix application and database credentials
7. Server: Run
```sh
npm start
```
8. Client: Install NPM packages
```sh
cd ../client/
npm install
```
9. Client: Create .env file
```sh
cp .env.example .env
```
10. Client: Populate the .env file with your Fénix application credentials
11. Client: Run
```sh
npm start
```


### Alternative: Docker for database

1. Pull postgres image
```sh
docker pull postgres:alpine
```
2. Create and run the container
```sh
docker run -itd -e POSTGRES_PASSWORD=<PASSWORD> -p 5432:5432 -v <HOST_FOLDER>:/var/lib/postgresql/data --name postgresql postgres:alpine
```
3. Create database
```sh
docker exec -it postgresql bash
psql -U postgres
CREATE DATABASE neiist;
\q
exit
```
Note: the env variable PGHOST should be localhost
> [React](https://reactjs.org/), [React Bootstrap](https://react-bootstrap.github.io/), [Node.js](https://nodejs.org/en/), [Express](http://expressjs.com/), [PostgreSQL](https://www.postgresql.org/)


<!-- USAGE EXAMPLES -->
Expand Down
17 changes: 17 additions & 0 deletions build/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
NPM_COMMAND=start

CLIENT_NAME=client
CLIENT_PORT=3000
CLIENT_FOLDER=client

SERVER_NAME=server
SERVER_PORT=3001
SERVER_FOLDER=server

POSTGRES_NAME=postgres
POSTGRES_PORT=5432
POSTGRES_IMAGE=postgres:alpine

POSTGRES_DB=neiist
POSTGRES_USER=
POSTGRES_PASSWORD=
13 changes: 13 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:21.4.0-bullseye-slim

WORKDIR /opt/app

COPY ./package*.json /opt/app/
RUN npm install

COPY ./ /opt/app

ARG PORT
EXPOSE $PORT

ENTRYPOINT ["npm"]
56 changes: 56 additions & 0 deletions build/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: neiist
services:
client:
container_name: $CLIENT_NAME
build:
context: ../client/
dockerfile: ../build/Dockerfile
args:
PORT: $CLIENT_PORT
ports:
- $CLIENT_PORT:$CLIENT_PORT
volumes:
- ../client/:/opt/app/
- /opt/app/node_modules
command: $NPM_COMMAND
depends_on:
- server

server:
container_name: $SERVER_NAME
build:
context: ../server/
dockerfile: ../build/Dockerfile
args:
PORT: $SERVER_PORT
environment:
PGHOST: ${PGHOST:-postgres}
ports:
- $SERVER_PORT:$SERVER_PORT
volumes:
- ../server/:/opt/app/
- /opt/app/node_modules
command: $NPM_COMMAND
depends_on:
postgres:
condition: service_healthy

postgres:
container_name: $POSTGRES_NAME
image: $POSTGRES_IMAGE
environment:
POSTGRES_DB: $POSTGRES_DB
POSTGRES_PORT: $POSTGRES_PORT
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
ports:
- $POSTGRES_PORT:$POSTGRES_PORT
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $POSTGRES_DB -U $POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
31 changes: 16 additions & 15 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"dependencies": {
"@mantine/core": "^6.0.8",
"@mantine/hooks": "^6.0.8",
"axios": "1.6.8",
"axios": "1.7.2",
"bootstrap": "5.3.3",
"html-react-parser": "^5.0.0",

"react": "18.3.1",
"react-bootstrap": "2.10.2",
"react-device-detect": "^2.2.2",
Expand Down
Binary file modified client/src/images/eventos/churras.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading