Giter Site home page Giter Site logo

charcode-server's Introduction

charcode-server

Configuration

  1. Install the dependencies (yarn install/npm install)
  2. Create and fill the env/.env file with the required keys*
  3. Start the server (yarn start/npm run start)
  4. Done! ;)

* the env folder have a .env.example file to indicate wich keys must be in your .env(wich you have to create and fill by yourself) otherwise the application will not startup, this behaviour is caused by the use of dotenv-safe. Each key have an explanation what is his usage to facilitate the filling.

npm Scripts

start - start the application with live reload

build - transpile the source files to dist/

serve - start the compiles application

test - run the all the tests

lint - run the eslint in the source files

Folder Structure

─┬── dist // Output folder to the compiled files
 ├── env
 |    ├── .env // Key-value pairs to set the environment variables 
 |    └── .env.example // Required key to environment variables
 ├── src
 |    ├── api
 |    |    ├── v1
 |    |    |    ├── ... // API endpoints of the version specified in the folder name
 |    |    |    └── index.js // Aggregate all the routes
 |    |    ├── ...
 |    |    └── index.js // Aggregate all the versions
 |    |
 |    ├── config // Contains all configuration related to server (i.e. database, express middlewares)
 |    ├── middlewares // Declare our custom middlewares
 |    ├── models // Mongoose schema and model declaration
 |    ├── services // All services
 |    └── app.js // Server initialization and invoke of config files
 └── test

charcode-server's People

Contributors

cgerling avatar angelovianajr avatar

Stargazers

Luís Eduardo de Barros Teixeira avatar

Watchers

James Cloos avatar  avatar

Forkers

luistei17

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.