huydevct / vlance-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿš€ Getting started with Strapi

Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds.

develop

Start your Strapi application with autoReload enabled. Learn more

npm run develop
# or
yarn develop

start

Start your Strapi application with autoReload disabled. Learn more

npm run start
# or
yarn start

build

Build your admin panel. Learn more

npm run build
# or
yarn build

โš™๏ธ Deployment

Strapi gives you many possible deployment options for your project. Find the one that suits you on the deployment section of the documentation.

๐Ÿ“š Learn more

  • Resource center - Strapi resource center.
  • Strapi documentation - Official Strapi documentation.
  • Strapi tutorials - List of tutorials made by the core team and the community.
  • Strapi blog - Official Strapi blog containing articles made by the Strapi team and the community.
  • Changelog - Find out about the Strapi product updates, new features and general improvements.

Feel free to check out the Strapi GitHub repository. Your feedback and contributions are welcome!

โœจ Community

  • Discord - Come chat with the Strapi community including the core team.
  • Forum - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members.
  • Awesome Strapi - A curated list of awesome things related to Strapi.

Guide to run BE fluently on local

  • Clone the project of BE from this Github
  • Need to install MySQL on you desktop then you need to create a database name vlance-api
  • Then run npm install to install all package you need
  • Use this command to run project BE on localhost:
    npx strapi develop => on development (use much time)
    npx strapi build => to build on development
  • Create file .env with value
    DATABASE_HOST=127.0.0.1
    DATABASE_PORT=3306
    DATABASE_NAME=vlance-api
    DATABASE_USERNAME=root
    DATABASE_PASSWORD=Test@123456
    DATABASE_SSL=false

    HOST=0.0.0.0
    PORT=1337
    APP_KEYS=H10RtdFqZtRQ5H/uORwF5g==,RJ7maTq4YNohRVqL1Gstyw==,Hi8OYaQglhuTYGtWgow2Dw==,qKVJK70lO78mEI0pxM/pIw==
    API_TOKEN_SALT=TcUjUDemePTomv1uB48M2A==
    ADMIN_JWT_SECRET=FksVII3CGEwQtXxqWV85TA==
    JWT_SECRET=UrqiZqzKToPaie1m+2/WBA==
    SENDGRID_API_KEY=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
  • Change the password of database with you local database password
  • Before running it, rename ths folder migrations => migrations_1
  • Then run command: npx strapi develop, after it's success, push ctrl+C to cancel the terminal
  • Then rename the folder migrations_1 => migrations
  • Then run this command npx strapi develop to run it completely
  • You need to set the permission of roles that you can call api and use the documentation of api:
    - Settings > Roles below Users&Permissions plugin > Click to Authenticated > Click to each collections and tick select all to allow user after login can use these api which need
    - Do like above with Client, Freelancer and Public

About


Languages

Language:JavaScript 100.0%