๐ Flatlogic Node.js Backend - Free but Outdated!
January 23, 2025 ยท View on GitHub
More Templates | Discord Community | Support Forum
Heads up! ๐จ This backend is a bit old-school now. For a more up-to-date, efficient, and customizable experience, generate a fresh one with our Flatlogic Generator. It's way better. ๐
๐ Quick Start
1. Install dependencies:
yarn install
2. Adjust local database:
Step 1: Install PostgreSQL
- MacOS:
brew install postgres - Ubuntu:
sudo apt update sudo apt install postgresql postgresql-contrib
Step 2: Create database and user:
psql -U postgres
Then run the following commands inside PostgreSQL:
CREATE DATABASE development OWNER postgres;
\q
3. Setup database tables:
yarn reset
4. Start development server:
yarn start:dev
5. Start production build:
yarn start
Pro Tip: If you run into issues, it might be time to check out the Flatlogic Generator instead. ๐
๐ API Documentation (Swagger)
Once running, check the API docs here:
- http://localhost:8080/api-docs (Local)
- http://host_name/api-docs (Production)
๐ณ Docker Support
If you'd rather run the backend via Docker, follow these steps:
- Ensure PostgreSQL is installed as described above.
- Build the Docker image:
docker build -t um-backend-image . - Run a container:
docker run -p 8080:8080 -d um-backend-image - Access the API at:
http://localhost:8080/api
๐ฅ About Flatlogic
Flatlogic builds modern business software so you don't have to. Our AI Software Development Agent helps you generate, deploy, and maintain enterprise applications with minimal effort.
๐ License
This backend is free to use, but seriously, consider upgrading with the Flatlogic Generator. ๐
Questions or feedback?
Join our Flatlogic Community Discord or visit our support forum.