Skip to content

Commit

Permalink
🥳 Migrating to next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bboa3 committed Jun 24, 2021
1 parent 5dbafd0 commit bb77711
Show file tree
Hide file tree
Showing 176 changed files with 9,521 additions and 15,950 deletions.
20 changes: 15 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,28 @@
# testing
/coverage

# next.js
/.next/
/out/

# production
/build
/.git

# misc
**/.env
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# vercel
.vercel
File renamed without changes.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cSpell.words": [
"Formik",
"Ingadi",
"revolucionario"
]
}
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:lts-alpine

# Create app directory
RUN mkdir -p /home/ingadi/web/node_modules && chown -R node:node /home/ingadi/web
WORKDIR /home/ingadi/web

COPY package.json package-lock.json ./
USER node
RUN npm add

COPY --chown=node:node . .

EXPOSE 3000
CMD ["npm", "run", "start"]
29 changes: 0 additions & 29 deletions LICENSE

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[Matola Ingadi](https://matolaingadi.ogolfim.com/)

[Matola Ingadi](https://matolaingadi.website/)
![](header.png)

Matola Ingadi is an event hall, so i created a website where they can save events stories, receive an email when a user plans an event in the Lounge, save the user's planned and realized events.

For the maintenance of the website I created the superuser which will access the application through a separate client. <br/>
Hi's able to add, edit delete data, so with that the website will always use updated data. (Client [Here](https://github.com/arlindojos/Matola-Ingadi/tree/mobile)).
Hi's able to add, edit delete data, so with that the website will always use updated data. (Client [Here](https://github.com/bboa3/Matola-Ingadi/tree/mobile))
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

module.exports = {
presets: ["next/babel"],
plugins: [["styled-components", { "ssr": true }]]
}
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3.8"

services:
ingadi-web:
build: .
env_file:
- ./.env
volumes:
- web-data:/home/ingadi/web
- node_modules:/home/ingadi/web/node_modules
networks:
- ingadi-network
container_name: "ingadi-web"
command: npm run start
ports:
- 3001:3000

networks:
ingadi-network:
volumes:
web-data:
node_modules:
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
<label>Nome do cliente: <strong>{{name}}</strong></label>
<p>Email: {{email}}</p>
<p>Telefone: {{phoneNumber}}</p>
<p>Data que pretende realizar o evento <strong>{{date}}</strong></p>
</div>
<p>Data que pretende realizar o evento <strong>{{date}}</strong></p>
</div>
Binary file added header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion mobile
Submodule mobile deleted from 9749ab
4 changes: 4 additions & 0 deletions next-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const withImages = require('next-images')
module.exports = withImages({
esModule: true,
})
2 changes: 2 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
Loading

1 comment on commit bb77711

@vercel
Copy link

@vercel vercel bot commented on bb77711 Jun 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.