This is a simple CRUD application where every part of this project is sample code which shows how to do the following:
- Create a custom web server with Node.JS using HTTPRouter
- Create a simple REST API that serves Client and easy to manage
- Create a simple charts or graphs with Refine
- Create a Mongoose DataBase which saves the data in cloud
- Create a front end with React
- Live Demo
- Login
- View the properties
- Create a property
- Property details
- Profile page
Please follow the steps to intall all dependencies to use this repo
- Clone this project.
- Set up a local mangoose database or use MongoDB Cloud.
- In server folder create a .env file and inside .env file create a variable "MONGODB_URL" and pass your mongoDB to it.
- Create an account in Cloudinary and inside .env file pass these variables and CLOUDINARY_CLOUD_NAME = "", CLOUDINARY_API_KEY = "", CLOUDINARY_API_SECRET = "".
- in Client folder create a .env file and indide .env file create a variable REACT_APP_GOOGLE_CLIENT_ID = "", in Google Cloud create an project and pass the value of Client ID into .env file.
- npm install
npm run dev
npm run build
npm run start