API made for Passionly project!
To run this project, you will need:
- npm
npm install npm@latest -g
- Clone the repo
git clone https://gitlab.univ-artois.fr/dylan_donne/passionly-api
- Install NPM packages
npm install
- Create a
config.js
in/config
folder
const db_config = {
user: 'passionly',
host: 'localhost',
database: 'api',
password: 'password',
port: 5432
}
const app_config = {
http_port: 3000,
https_port: 8443
}
const auth_config = {
secret: "itsasecret"
}
module.exports = {
db_config,
app_config,
auth_config
}
- Create a Firebase APP and download the
serviceAccountKey.json
to the root folder - Build api bundle
npm run build
- API is ready to be published ! Enjoy
This API has been specially designed for Passionly Client.
Distributed under the MIT License. See LICENSE
for more information.
DONNE Dylan - @Killax_Dev - [email protected]