This repository contains the source code for the User Form application, which consists of both frontend and backend components.
The User Form application is designed to provide a user registration and login system. It allows users to sign up with their information and subsequently log in to access the application's features. The backend is powered by JSON Server, providing a RESTful API for user management, while the frontend is built using Angular.
- User registration with validation
- User login with authentication
- Seamless integration between frontend and backend
- JSON Server backend for storing user data
- Angular frontend for user interaction
To run the frontend app locally, follow these steps:
- Navigate to the
frontend-app
directory. - Install dependencies using
npm install
. - Start the development server using
npm run start
. - Open a web browser and navigate to
http://localhost:4200/
to view the app.
To deploy the frontend app, follow these steps:
- Build the app using
ng build
. - Deploy the generated
dist
directory to your hosting provider.
To run the backend app locally, follow these steps:
- Navigate to the
backend-app
directory. - Install dependencies using
npm install
. - Start the JSON Server using
json-server --watch <file name>
. - The server will be accessible at
http://localhost:3000/
.
To deploy the backend app, follow these steps:
- Deploy the entire
backend-app
directory to your hosting provider. - Ensure that the
db.json
file is included and accessible to the server.
- For more information about Angular, refer to the Angular documentation.
- For more information about JSON Server, refer to the JSON Server documentation.
To run the User Form application locally, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/your-username/user-form.git => Navigate to the project directory: cd user-form => Install dependencies for both frontend and backend: cd frontend-app npm install cd ../backend-app npm install => To start the backend server powered by JSON Server: cd backend-app json-server --watch <file name> => To start the frontend Angular application: cd frontend-app npm run start