This repository contains the serverless backend of Nebu.
To install the dependencies run this on your terminal:
yarn --prod
# or
npm i --production
You 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 dev
Wait 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:
cadaster
login
update
update_password
info
search
create
update_project
project_info
search_project
delete_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 i
And learn about the project with the development docs.