Giter Club home page Giter Club logo

cms2's Introduction

CMS2

Install

$ composer install
$ bin/console doctrine:schema:create

Add base database

$ bin/console doctrine:migrations:migrate -n

Add an admin user

$ bin/console fos:user:create

Promote the user to ROLE_ADMIN, in order to be able to access the admin interface

$ bin/console fos:user:promote

Analytics

Step 1: Create a service account and download the JSON key

Follow the steps in the Google Identity Platform documentation to create a service account(https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount) from the Google Developer Console(https://console.developers.google.com/).

Once the service account is created, you can click the Generate New JSON Key button to create and download the key and add it to your project.

Important! Make sure to store your JSON key file privately and securely. Do not check it in to a public repository or store it on a public server. The file needs to be saved under app/config/client_secret.json.

Step 2: Add the service account as a user in Google Analytics

The service account you created in the previous step has an email address that you can add to any of the Google Analytics views you'd like to request data from. It's generally best to only grant the service account read-only access.

Rest Api documentation

Access to /api/doc

Docker

$ docker-compose up

In order to access the database

mysql -uroot -psymfony -P3307

Open your browser

http://localhost:81/

You can change the default variables values on .env file

Tests

In order to execute the acceptance tests you need to run the following command

docker-compose run php bin/console doctrine:schema:create
docker-compose run php bin/console doctrine:migrations:migrate -n
docker-compose run php bin/console fos:user:create admin [email protected] admin
docker-compose run php bin/console fos:user:promote admin ROLE_ADMIN
docker-compose run php bin/codecept run acceptance --steps

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.