Code Monkey home page Code Monkey logo

werecy-api's Introduction

Werecy backend

Development

  • with live reload for the admin cd admin && npm install && npm start npm install && npm run dev
    • access to admin on http://localhost:3000/
    • you should have mongo running locally with data
  • without live reload for the admin cd admin && npm install && npm run build npm install && npm run dev
    • access to admin on http://localhost:8080/
    • you should have mongo running locally with data
  • you can also make it work in docker (to be fixed)

Use production data locally

  • download dump from clever cloud
  • mongorestore --archive --gzip < mongodb_7be143fc-5a59-4182-8409-b3236eb46ab8-20220105023350

Create admin

  • insert admin with the following format in admins collection
{
    "_id": {
        "$oid": "61efcae25e92a5292ff31e9a"
    },
    "superAdmin": true,
    "name": "Werecy",
    "email": "[email protected]",
    "hash": "$2b$12$hcDftZ2aY2DR0xh9RjICHuPzCSm9TEwTVyQ/4oVnjQVYTiJH0f23S", // werecy
    "createdAt": {
        "$date": "2022-01-19T08:04:43.987Z"
    },
    "updatedAt": {
        "$date": "2022-01-19T08:04:43.987Z"
    },
    "__v": 0
}

Deployment

  • The backend is hosted on clever cloud git push master to deploy

werecy-api's People

Contributors

szilagyikinga avatar geoffreyhervet avatar

Watchers

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