This README documents the steps necessary to get the backend of the Form Builder application up and running.
This project is the backend of a dynamic Form Builder application, built using Ruby on Rails. It provides an API for the frontend to create, customize, and manage forms. The backend handles form data storage, user authentication, and serves the necessary endpoints for the frontend application.
- API Endpoints: RESTful API for managing forms and user authentication.
- User Authentication: Secure registration and login functionality.
- Database Management: Store and retrieve form data efficiently.
Clone the repository:
git clone https://github.com/peterdgreat/form_builder_api
cd form_builder_api
Install dependencies:
bundle install
Set up the database:
rails db:create
rails db:migrate
Set up environment variables:
Create a .env
file in the root of your project with the following variables:
DATABASE_URL=postgres://user:password@localhost:5432/form_builder_development
Adjust the DATABASE_URL
to match your database configuration.
Start the development server:
rails server
The API should be running on http://localhost:3001
.
- API Documentation: Refer to the API documentation for available endpoints.
- Authentication: Use
/register
to create a new user and/login
to authenticate.
To deploy the backend for production:
- Precompile assets:
RAILS_ENV=production rails assets:precompile
- Deploy the application to your preferred hosting service (e.g., Heroku, AWS).
- Ruby on Rails
- PostgreSQL
- JWT for authentication
Feel free to fork the repository and submit pull requests. Issues and feature requests are welcome.
This project is licensed under the MIT License.
This README covers the essential aspects of your backend project, helping others understand, set up, and contribute to it.