Zidence is a simple property listing application. This repo is the backend API part with Node.js tooling ecosystem.
- Node.js
- Express
- Prisma
- PostgreSQL
yarnyarn migrate
# prisma migrate dev --preview-featureyarn migrate:reset
# prisma migrate reset --preview-featureyarn generate
# prisma generateyarn dev
# nodemon src/index.jsOpen http://localhost:4000
yarn start
# node src/index.jsOpen http://localhost:4000
yarn migrate:deploy
# prisma migrate deploy --preview-featureYou can access the REST API of the server using the following endpoints:
/users: Get all users/properties: Get all properties/properties/:slug: Get a single property by itsslug
/auth/register: Register a new user- Body:
email: String(required): The email address of the userhandle: String(required): The handle/username of the username: String(required): The name of the userpasswrod: String(required): The password of the user
- Body:
/properties: Create a new property- Body:
name: String(required): The name of the propertyslug: String(required): The slug of the propertydescription: String(optional): The description of the propertyuserId: String(required): Theidof the user that creates the property
- Body:
/property/:slug: Delete a property by itsslug