Skip to content

Database testing#8

Open
armandodecanha wants to merge 4 commits into
developfrom
database_testing
Open

Database testing#8
armandodecanha wants to merge 4 commits into
developfrom
database_testing

Conversation

@armandodecanha

Copy link
Copy Markdown
Contributor

I'll try to see how heroku, and travis, and the Docker works...

And the most cool version of the database dump is here. I hope you like it.

@delirial delirial left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We need to view the functionality of docker and npm script npm start before merge

Comment thread .github/settings.yml
name: myment-front
description: Myment Travel app FrontEnd
name: myment_back
description: Myment Travel Web App back-end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks 🤣

Comment thread .gitignore
@@ -1 +1,2 @@
node_modules
.cache

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you don't use parcel or something like that, it's not needs

Comment thread .prettierrc
@@ -0,0 +1,6 @@
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks ! I forgot it

Comment thread Dockerfile
@@ -1,10 +1,15 @@
FROM node:10-alpine

FROM mariadb:10.4 as database

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

With this change it's work ?

Comment thread models/Sign_up.js
@@ -0,0 +1,29 @@
const Sequelize = require('sequelize');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is not a model, this is a mapping between model and table.

To define mappings between a model and a table, use the define method

Maybe we need a model, in the manual there is this example:

class Project extends Model {}
Project.init({
  title: Sequelize.STRING,
  description: Sequelize.TEXT
}, { sequelize, modelName: 'project' });

Comment thread config/database.js
@@ -0,0 +1,9 @@
const Sequelize = require('sequelize');

module.exports = new Sequelize('myment', 'root', '010495a', {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is the connection object, not a database

Comment thread package.json
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "mysqld && node app.js",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

msqld only ?? and it's work ?

Comment thread package.json
},
"keywords": [],
"author": "",
"author": "FuckingBosses",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

;)

@delirial delirial changed the base branch from master to develop August 1, 2019 09:59
@delirial

delirial commented Aug 1, 2019

Copy link
Copy Markdown
Contributor

⚠️ Don't resolve the conflicts locally please ⚠️

@delirial delirial added needs-review Pull requests which need code review, and approval from maintainers or FullStacktf core team. needs-testing Pull requests which need manual testing. Priority: High High priority tasks that can be done when there's no critical priority tasks labels Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Pull requests which need code review, and approval from maintainers or FullStacktf core team. needs-testing Pull requests which need manual testing. Priority: High High priority tasks that can be done when there's no critical priority tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants