Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

Latest commit

 

History

History
43 lines (28 loc) · 1.06 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.06 KB

crater

🚀 place to put your code in

This project is in a pre-alpha state. Until such point that crater is marked "stable" and/or "ready for production," nothing from this repository should be used in a production environment.

getting started

Requirements:

  • Elixir (v1.6+)
  • Node.js (v8.0+)
  • Yarn - optional. you can use npm if you want to, but it's for your own sanity.

phoenix side (backend)

# install dependencies
mix deps.get

# run the database migration
mix ecto.setup

# start the server
mix phx.server

your API server is now live at localhost:4000

react side (frontend)

the React frontend is stored in the priv/crater-web directory, so cd there first.

cd priv/crater-web
# install dependencies
yarn # or `npm install`

# start the development server
yarn start # or `npm start`

your frontend is now live at localhost:3000. all API requests will be proxied to port 4000.