This repository contains the serverless backend of Nebu.
To install the dependencies run this on your terminal:
yarn --prod
# or
npm i --productionYou need to configure some .env variables before getting started, such as:
DATABASE_URL="<YOUR_MONGODB_URL>"
JWT_SECRET_TOKEN="<YOUR_JWT_SECRET_TOKEN>"To run the serverless functions you need to have installed the netlify cli. After installing the cli, run this:
netlify devWait some seconds and then the development environment will be ready!
After the steps, the functions will be available at http://localhost:8888/.netlify/functions/<FUNCTION>
And the functions are:
cadasterloginupdateupdate_passwordinfosearch
createupdate_projectproject_infosearch_projectdelete_project
For more details, take a look at the functions docs.
If you want to help in the project development, install the dev dependencies:
yarn i
# or
npm iAnd learn about the project with the development docs.