Coder Social home page Coder Social logo

fnf-strapi-backend's Introduction

FNF Strapi Backend

Installation of Strapi console and API service on your machine.

Requirements

Node.js >= 10.x installed on your machine
NPM >= 6.x installed on your machine

PostgreSQL installed on your machine

Getting started

Either checkout this repo or build from scratch.

Quickstart - checkout from repo

Check out this repo on to you local machine.

Update the /config/database.js

module.exports = ({ env }) => ({
  defaultConnection: 'default',
  connections: {
    default: {
      connector: 'bookshelf',
      settings: {
        client: 'postgres',
        host: env('DATABASE_HOST', '127.0.0.1'),
        port: env.int('DATABASE_PORT', 5432),
        database: env('DATABASE_NAME', 'dbname'),
        username: env('DATABASE_USERNAME', 'db_user'),
        password: env('DATABASE_PASSWORD', 'password'),
        ssl: env.bool('DATABASE_SSL', false),
      },
      options: {}
    },
  },
});

Running Strapi: You can start by doing....



  cd /Users/u/development/project/projectname
  npm run develop

Building from scratch

Using instructions, here from Strapi site

https://strapi.io/documentation/developer-docs/latest/guides/databases.html#mongodb-installation

Run:

npx create-strapi-app strapi-backend

Select Postgres as you main database. Accept the default options for all others.


Your application was created at /Users/u/development/project/projectname.

Available commands in your project:

  npm run develop
  Start Strapi in watch mode.

  npm run start
  Start Strapi without watch mode.

  npm run build
  Build Strapi admin panel.

  npm run strapi
  Display all available commands.

You can start by doing:

  cd /Users/u/development/project/projectname
  npm run develop

PostgreSQL database

Set up your local database:

psql postgres

CREATE DATABASE dbname;

CREATE ROLE db_user WITH LOGIN PASSWORD 'password' CREATEDB;

GRANT ALL PRIVILEGES ON DATABASE dbname TO db_user;



Strapi plugin content-export-import

Checkout plugin code from into /plugins folder from

https://github.com/lazurey/strapi-plugin-content-export-import

To install:

npm install --plugins

fnf-strapi-backend's People

Contributors

dawudrahmanaqovia avatar

Watchers

Steve Hayes avatar James Cloos avatar Dawud R avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.