Coder Social home page Coder Social logo

legs's Introduction

LEGS(ARMS back-end)

CircleCI

Files you need to create

Create a .env and ensure that the .env file is in .gitignore. The JWT secret key from the test-armadillo-legs app in Heroku currently matches what is hashed in the mongo command in the arms circleci dropDb job. If it is replaced, then the hashed password in the mongo command must also be changed to match it.

{
  JWT_SECRET_KEY=<Generate your own>
}

Seed your local DB copy with an initial admin user to allow cypress tests to be ran

Using your own JWT_SECRET_KEY, generate a hash password to be used with the following mongo command to run on your local DB to create the first initial Admin user:

db.users.insertOne({email:'[email protected]',password:,role:'admin'})

when using the bash shell remember to use escape characters for dollar signs characters in the hashed password.

This command is also used in ARMS (Front-end) for the config.yml file to seed the first admin user for testing.

Getting started

To start server

npm start

To start server in development mode

npm run start:dev

To run the tests

npm test

To build the app

npm run build

legs's People

Contributors

kaihengann avatar j-nineteen avatar iamcarlmichael avatar jsstrn avatar ashleytanliling avatar jenlky avatar nahsiloh avatar shafoharuki avatar logicui avatar squarepancakes avatar dependabot[bot] avatar elsonlim avatar

Watchers

James Cloos 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.