Giter Site home page Giter Site logo

klaymr / aofuji-analytics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hiroroy/aofuji-analytics

0.0 0.0 0.0 3.99 MB

Minimal alternative to Google Analytics based on Vue.js and MongoDB.

Home Page: https://aofuji.ink

License: MIT License

JavaScript 50.89% HTML 0.38% Vue 46.11% SCSS 2.57% Shell 0.06%

aofuji-analytics's Introduction

Aofuji Analytics

Introduction

Minimal alternative to Google Analytics based on Vue.js and MongoDB.

Preview Image

About the Project

This project does not use semantic versioning until v1 is officially released, so please check the changelog carefully before each upgrade to see if it is still working properly.

About Vue.js

Vue.js is in the transition phase from v2 to v3, and the project will continue to be based on v2 temporarily because the adaptation of the community ecosystem is not stable yet.

Getting Started

Go to documentation site for detailed instructions.

Installation

Get Source

git clone https://github.com/dsrkafuu/aofuji-analytics.git
cd aofuji-analytics

Checkout the latest release after cloned:

git checkout v0.1.0

You can get the latest release tag at release page.

Setup Environment Variables

Create a .env.production file and set the only required environment variable DATABASE_URL. If you're using a locally installed MongoDB server, your setup looks like this:

echo "DATABASE_URL=mongodb://username:password@localhost:27017/dbname" > .env.production

Check out the Environment Variables for more optional variables.

Install Deps and Build

npm ci
npm run build

Start Application

npm start

When the server starts up at port 3000, you can expose it directly to the public network (not recommended) or provide it to a reverse proxy.

Update Application

Fetch Latest Source

git fetch
git checkout v0.1.1 # latest tags will show in terminal when fetch

Update Deps and Build

npm ci
npm run build
npm start

Contribute

Local Development

First you need to fork this repo and clone it.

Then create a .env.development then set the development environment variables above. Check the Environment Variables section for more details.

After these, you can simply:

npm install
npm run dev

Local MongoDB server is also needed.

Code Style

This project uses husky and lint-staged to format source code, so the git commands may be slow due to the Prettier formatting workflow.

Options API Props Order

render
name => components
props => data => computed => watch
lifecycle functions
methods

SCSS Scopes

All basic components in @/components should not use scoped styles, styles of those needs to be named like a-component-ctx.

Alternatively, all view components in @/views should use scoped styles.

License

This project is released under MIT License, for more information read the LICENSE.

Copyright © 2020-present DSRKafuU (https://dsrkafuu.su)

aofuji-analytics's People

Contributors

dsrkafuu 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.