Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LDE API
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
simcaq
LDE API
Commits
eb41218d
Commit
eb41218d
authored
Jan 11, 2019
by
Fernando Erd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GNU GPLv3
parent
15931db6
Pipeline
#19033
failed with stage
in 1 minute and 37 seconds
Changes
20
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
400 additions
and
0 deletions
+400
-0
src/libs/app.js
src/libs/app.js
+20
-0
src/libs/config.js
src/libs/config.js
+20
-0
src/libs/db/monet.js
src/libs/db/monet.js
+20
-0
src/libs/db/mongoose.js
src/libs/db/mongoose.js
+20
-0
src/libs/db/query_exec.js
src/libs/db/query_exec.js
+20
-0
src/libs/log.js
src/libs/log.js
+20
-0
src/libs/middlewares/checkVersion.js
src/libs/middlewares/checkVersion.js
+20
-0
src/libs/middlewares/email.js
src/libs/middlewares/email.js
+20
-0
src/libs/middlewares/passport.js
src/libs/middlewares/passport.js
+20
-0
src/libs/models/filters.js
src/libs/models/filters.js
+20
-0
src/libs/models/indicator.js
src/libs/models/indicator.js
+20
-0
src/libs/models/message.js
src/libs/models/message.js
+20
-0
src/libs/models/user.js
src/libs/models/user.js
+20
-0
src/libs/routes/api.js
src/libs/routes/api.js
+20
-0
src/libs/routes/indicator.js
src/libs/routes/indicator.js
+20
-0
src/libs/routes/message.js
src/libs/routes/message.js
+20
-0
src/libs/routes/user.js
src/libs/routes/user.js
+20
-0
src/server.js
src/server.js
+20
-0
src/test/api.js
src/test/api.js
+20
-0
src/test/user.js
src/test/user.js
+20
-0
No files found.
src/libs/app.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
express
=
require
(
'
express
'
);
const
cookieParser
=
require
(
'
cookie-parser
'
);
const
bodyParser
=
require
(
'
body-parser
'
);
...
...
src/libs/config.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
let
conf
=
require
(
`
${
process
.
cwd
()}
/config.json
`
);
conf
=
conf
[
process
.
env
.
NODE_ENV
];
...
...
src/libs/db/monet.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
MonetDBPool
=
require
(
'
monetdb-pool
'
);
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
...
...
src/libs/db/mongoose.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
const
config
=
require
(
`
${
libs
}
/config
`
);
...
...
src/libs/db/query_exec.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
...
...
src/libs/log.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
const
config
=
require
(
`
${
libs
}
/config
`
);
...
...
src/libs/middlewares/checkVersion.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
curPath
=
process
.
cwd
();
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
const
log
=
require
(
`
${
libs
}
/log
`
)(
module
);
...
...
src/libs/middlewares/email.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
nodemailer
=
require
(
'
nodemailer
'
);
let
transporter
=
nodemailer
.
createTransport
({
...
...
src/libs/middlewares/passport.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
JwtStrategy
=
require
(
'
passport-jwt
'
).
Strategy
;
const
ExtractJwt
=
require
(
'
passport-jwt
'
).
ExtractJwt
;
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
...
...
src/libs/models/filters.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
mongoose
=
require
(
'
mongoose
'
);
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
const
log
=
require
(
`
${
libs
}
/log
`
)(
module
);
...
...
src/libs/models/indicator.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
mongoose
=
require
(
'
mongoose
'
);
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
const
log
=
require
(
`
${
libs
}
/log
`
)(
module
);
...
...
src/libs/models/message.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
mongoose
=
require
(
'
mongoose
'
);
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
const
log
=
require
(
`
${
libs
}
/log
`
)(
module
);
...
...
src/libs/models/user.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
mongoose
=
require
(
'
mongoose
'
);
const
bcrypt
=
require
(
'
bcrypt-nodejs
'
);
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
...
...
src/libs/routes/api.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
express
=
require
(
'
express
'
);
const
api
=
express
();
...
...
src/libs/routes/indicator.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
express
=
require
(
'
express
'
);
const
indicatorApp
=
express
();
...
...
src/libs/routes/message.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
express
=
require
(
'
express
'
);
const
messageApp
=
express
();
...
...
src/libs/routes/user.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
express
=
require
(
'
express
'
);
const
userApp
=
express
();
...
...
src/server.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
const
debug
=
require
(
'
debug
'
)(
'
simcaq-api
'
);
const
libs
=
`
${
process
.
cwd
()}
/libs
`
;
const
config
=
require
(
`
${
libs
}
/config
`
);
...
...
src/test/api.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
process
.
env
.
NODE_ENV
=
'
test
'
;
const
chai
=
require
(
'
chai
'
);
...
...
src/test/user.js
View file @
eb41218d
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of lde-api.
lde-api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lde-api is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lde-api. If not, see <https://www.gnu.org/licenses/>.
*/
process
.
env
.
NODE_ENV
=
'
test
'
;
const
chai
=
require
(
'
chai
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment