Skip to content

🐦 A API do blog da Plataforma de Tecnologias do Semi-Árido Brasileiro 🌴

Notifications You must be signed in to change notification settings

ufersa/plataforma-sabia-blog-api

Repository files navigation

Sabia Platform

Sabiá Platform

🐦 🌴 🚀

This is the API of Sabiá Platform blog. It was built using Strapi as the API and MySQL as the database.

🚀 Get up and running

  1. Clone this repository
  git clone git@github.com:ufersa/plataforma-sabia-blog-api.git
  1. Install all dependencies
npm install
# or using yarn
yarn
  1. Make a copy of .env.example, rename it to .env and fill all values

  2. Start the database server

  3. Take a look at Database Seeding section

  4. Start the web server

npm run develop
# or with yarn
yarn develop

Happy coding 🎉

Additional commands

  • start: starts strapi with autoReload disabled. This commands is there to run strapi without restarts and file writes (aimed at production usage). Certain features are disabled in the strapi start mode because they require application restarts.

  • build: builds the admin panel.

  • strapi: the strapi CLI

Database Seeding

Strapi saves some application configurations directly in database, as views customizations, routes permissions and so on...

To avoid the necessity of configuring all environments over and over again, you can use our dump file located in dump/dump.sql.

To restore a dump, run the following command: mysql -u [user] < [filename].sql

If your database is in a Docker container: cat [filename].sql | docker exec -i [container] /usr/bin/mysql -u [user] --password=[password]

See Executing SQL Statements from a Text File for more information.

This dump doesn't contains fake posts/categories data, users or admins, but only views customizations and routes permissions to our end users.

After doing that, you're all set up.

About

🐦 A API do blog da Plataforma de Tecnologias do Semi-Árido Brasileiro 🌴

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages